Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Machine calls cleanup on time-step cleanup #536

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
**3.2.0 - TBD**

- Enable Machine to be used directly to model a state machine
- Support passing callables directly when building lookup tables
**3.2.0 - 11/12/24**

- Feature: Supports passing callables directly when building lookup tables
- Feature: Enables columns and pipelines to specify dependencies directly, instead of by name
- Feature: Enables identification of which component produced a Pipeline or RandomnessStream
- Bugfix: Enables Machine to be used directly to model a state machine
- Bugfix: Ensures that a Pipeline will always have a name
- Bugfix: Appropriately declares dependencies in example models
- Testing: Adds coverage for example DiseaseModel
- Refactor: Converts resource module into a package
- Refactor: Converts values module into a package
= Refactor: Simplifies code to allow Managers to create columns
- Refactor: Converts ResourceManager __iter__ to a well-named instance method
- Refactor: Creates ResourceTypes for each type of resource
- Refactor: Makes Pipeline and RandomnessStream inherit from Resource
- Refactor: Creates ValueSource and ValueModifer resources and attaches them to Pipelines

**3.1.0 - 11/07/24**

Expand Down
3 changes: 3 additions & 0 deletions src/vivarium/framework/state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,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
Loading