Populations remaining active when they shouldn't #2453
Closed
alanrogers
started this conversation in
General
Replies: 1 comment
-
|
I think the issue is that deactivate doesn't happen when the populations are emptied by mass_migration, this only occurs when a population_split or other 1.0 specific events are called. I don't think there's a high-level API for setting populations as inactive, this is done in the C code. However, I don't think it makes any real difference, as the active/inactive state machine is really just a user-feature to help with demographic modelling. If your model works as it is, then I'd leave well enough alone. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've got a complex model that seems to work, but in the output of
dem.debug(), the final epoch has 6 active populations. Five of these should be empty and (in my view) should be inactive. I emptied them withproportion=1inadd_mass_migration, which apparently does not set them inactive. Is there a command I can use to set them inactive?By the way, the code runs, and there is no immigration into these populations, so I don't think they're doing any harm.
Beta Was this translation helpful? Give feedback.
All reactions