Skip to content

Commit

Permalink
more internal API update
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Aug 14, 2023
1 parent 469ec53 commit cd4ad72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fwdpy11/conditional_models/_track_added_mutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ def __call__(
) -> SimulationStatus:
if pop.generation == self.until:
if pop.mutations[index].key != key and self.is_fixed(pop, key) is False:
return SimulationStatus(True, False)
return SimulationStatus.Restart
if pop.mcounts[index] > 0:
return SimulationStatus(False, True)
return SimulationStatus.Complete
if self.is_fixed(pop, key):
return SimulationStatus(False, True)
return SimulationStatus(False, False)
return SimulationStatus.Complete
return SimulationStatus.Continue


@attr.s(auto_attribs=True)
Expand Down

0 comments on commit cd4ad72

Please sign in to comment.