Closed kasra-hosseini closed 4 years ago
A simplified version of the migration component is implemented here. One example output (considering both migration and mortality):
Inputs:
time:
start:
year: 2011
month: 1
day: 1
end:
year: 2012
month: 1
day: 1
step_size: 1 # Days
population:
population_size: 0 # 1 Base
age_start: 0
age_end: 100
mortality:
mortality_rate: 0.1
migration:
migration_rate: 0.3
The sum of population/mortality/migration counts at the very last time step is 1024 which is higher than the initial population (1000 rows). My guess is that at some time steps, we remove some people twice (due to mortality rate and migration rate). This needs to be fixed (added to the TODO list).
The results can be reproduced in this notebook
@crangelsmith Could you please confirm that this issue is resolved (see the first comment)? If yes, please go ahead and close it.