ImperialCollegeLondon / virtual_ecosystem

This repository is the home for the codebase for the Virtual Ecosystem project.
https://virtual-ecosystem.readthedocs.io
BSD 3-Clause "New" or "Revised" License
9 stars 1 forks source link

Feature/juvenile dispersal - Adding juvenile dispersal to the Animal Module #419

Closed TaranRallings closed 4 months ago

TaranRallings commented 4 months ago

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

Further checks

codecov-commenter commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.62%. Comparing base (88a6de3) to head (af0f340).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #419 +/- ## =========================================== + Coverage 94.59% 94.62% +0.02% =========================================== Files 69 69 Lines 3648 3666 +18 =========================================== + Hits 3451 3469 +18 Misses 197 197 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.