Skip to content

Commit

Permalink
allow more evolution. after exiting main while logic
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Aug 15, 2023
1 parent cd4ad72 commit 4076660
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fwdpy11/conditional_models/_track_added_mutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,15 @@ def _track_added_mutation(
raise OutOfAttempts()

assert pop_to_return is not None
if return_when_stopping_condition_met is False:
fwdpy11.evolvets(
rng,
pop_to_return,
local_params,
**evolvets_options_copy.asdict(), # type: ignore
**internal_options.asdict(), # type: ignore
)

return ConditionalModelOutput(
pop=pop_to_return,
params=local_params,
Expand Down

0 comments on commit 4076660

Please sign in to comment.