Adds a mesa geo pathogen model adaptation with compliance mechanics#418
Open
Adds a mesa geo pathogen model adaptation with compliance mechanics#418
Conversation
for more information, see https://pre-commit.ci
4a30cdd to
03e7554
Compare
3711739 to
541dc07
Compare
1c73a60 to
675d35e
Compare
for more information, see https://pre-commit.ci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
This PR adds a geographic adaptation of my pathogen outbreak model from PR#359, converting it from a grid-based simulation to a real geographic map using mesa-geo.
It would be highly recommended to give that a read first as this model uses the same mechanics and that PR is a more descriptive version explaining the mechanics.
Preview of a run(default parameters)
What this demonstrates:
Disease spread using real geographic proximity via GeoSpace instead of grid cells
Two-threshold quarantine hysteresis system with compliance rate mechanics
Geographic flee behave compliant agents move away from nearest infected agents these mechanics remain same except for the instead of manhattan distance it uses literal distances)
Agent movement bounded within the Eurasian continent using country polygons
from natural earth 110m shapefile for the country boundaries
How it differs from geo_sir:
Adds quarantine compliance mechanics - configurable fraction of citizens follow quarantine orders
Two-threshold system prevents quarantine from lifting the moment one agent recovers
Infected agents freeze in place during quarantine simulating lockdown zones
Agents bounded within Asia using polygon containment check
How to run:
pip install -r requirements.txt
solara run app.py
GSoC Checklist
Does it belong?
Is it correct?
Is it clean?
AI Assistance Disclosure
I used AI for searching about errors and debugging, the ai used was in my browser and not the IDE AI didn't have access to the code and no code is generated although suggestions were heavily used for debugging and understanding error messages,