You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#774 has uncovered a corner case bug. Situations where you start/stop evolution at different points of a demographic model can lead to runtime errors.
The root cause is not totally clear, and this stop/start is also tested elsewhere with non-demes models, which have all been passing.
Presumably, we need to parameterize those tests to stop/start at many more time points, to see if we can trigger similar issues.
The text was updated successfully, but these errors were encountered:
at start of simulation. If not, then we do NOT call the "model
updating" code path prior to entering the main loop.
CANDIDATE fix for #775
molpopgen
changed the title
Placeholder name: demographic event timings
Stopping/restarting demographic models at boundaries of deme extinction leads to model errors.
Jun 16, 2021
The details of this are that when an internal model state existed, we were always calling "update it" prior to entering the main loop. This was the wrong thing to do for this case. The fix is to add a bool in the C++ code asking if an internal state existed or not. This fix works, but it breaks a bizarre/rare use case of pickling/unpickling the model prior to starting the second call to evolvets.
population splits.
* When a migration lookup table is NULL, the exception
now reports the offspring deme index.
* Keep track of whether demographic_model_state pointer was null
at start of simulation. If not, then we do NOT call the "model
updating" code path prior to entering the main loop.
Fixes#775
Causes #777
…ation splits. (#774)
* When a migration lookup table is NULL, the exception
now reports the offspring deme index.
* Keep track of whether demographic_model_state pointer was null
at start of simulation. If not, then we do NOT call the "model
updating" code path prior to entering the main loop.
Fixes#775
Causes #777
#774 has uncovered a corner case bug. Situations where you start/stop evolution at different points of a demographic model can lead to runtime errors.
The root cause is not totally clear, and this stop/start is also tested elsewhere with non-demes models, which have all been passing.
Presumably, we need to parameterize those tests to stop/start at many more time points, to see if we can trigger similar issues.
The text was updated successfully, but these errors were encountered: