Closed TaranRallings closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 94.62%. Comparing base (
88a6de3
) to head (af0f340
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
Following Madingley, this builds on previous starvation-induced dispersal to add a dispersal check immediately after a cohort is born. When migrate_community is called during the normal flow of model execution there is a secondary check to see if the cohort is newly created. If the cohort is new, it creates a probability of dispersal based on allometric movement speed and grid size.
Currently, this only works for 'rook move' dispersal. The logic can be expanded for diagonal movement and multi-grid occupancy but we can leave that for a little later.
Fixes # (issue)
Type of change
Key checklist
pre-commit
checks:$ pre-commit run -a
$ poetry run pytest
Further checks