Skip to content

Commit

Permalink
Machine calls cleanup on time-step cleanup (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmudambi committed Nov 13, 2024
1 parent ed09d19 commit 2a81a36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vivarium/framework/state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,9 @@ def on_initialize_simulants(self, pop_data: SimulantData) -> None:
def on_time_step(self, event: Event) -> None:
self.transition(event.index, event.time)

def on_time_step_cleanup(self, event: Event) -> None:
self.cleanup(event.index, event.time)

##################
# Public methods #
##################
Expand Down

0 comments on commit 2a81a36

Please sign in to comment.