-
Notifications
You must be signed in to change notification settings - Fork 865
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate Time module and all its Schedulers (#2306)
As concluded in #2231, this PR deprecates the whole Time module and all its Schedulers. This change aims to provide more flexibility and control in agent activation and time management, inspired by the NetLogo framework. ### Changes 1. Deprecated the entire `mesa.time` module. 2. Added a module-level deprecation warning to `mesa.time`. 3. Updated the migration guide to include instructions for replacing each scheduler with AgentSet functionality. 4. Removed the `tests/test_time.py` file as it's no longer relevant. ### Migration Guide The migration guide has been updated to include detailed instructions on how to replace each scheduler with AgentSet functionality. This includes examples for: - BaseScheduler - RandomActivation - SimultaneousActivation - StagedActivation - RandomActivationByType The guide also includes general notes on changes to related functionality, such as the automatic incrementing of `Model.steps` and the replacement of scheduler-specific methods with AgentSet methods.
- Loading branch information
Showing
3 changed files
with
111 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.