Stabilize event scheduling system from experimental to mesa.time#3276
Merged
Stabilize event scheduling system from experimental to mesa.time#3276
Conversation
|
Performance benchmarks:
|
quaquel
reviewed
Feb 11, 2026
quaquel
approved these changes
Feb 11, 2026
Member
quaquel
left a comment
There was a problem hiding this comment.
One minor comment, but looks fine to me otherwise.
Move the event scheduling functionality from `mesa.experimental.devs.eventlist` to a new stable `mesa.time` module. This stabilizes the event-based simulation system that was introduced experimentally and makes it a first-class feature of Mesa. The event scheduling system (EventList, SimulationEvent, EventGenerator, Schedule, Priority) has been in experimental status since its introduction. After extensive testing and usage, it's ready to be stabilized and made part of Mesa's core API. This promotes better time management in agent-based models and supports both discrete event simulation and hybrid approaches.
9c7761c to
8767e5f
Compare
EwoutH
added a commit
that referenced
this pull request
Feb 11, 2026
Member
Author
|
Just realized I didn't update the test file, that's still in Once we remove the simulators, I will clean it up and move/rename to |
42 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Move the event scheduling functionality from
mesa.experimental.devs.eventlistto a new stablemesa.timemodule. This stabilizes the event-based simulation system that was introduced experimentally and makes it a first-class feature of Mesa.Also renames
SimulationEventtoEvent.Motive
The event scheduling system (EventList, SimulationEvent, EventGenerator, Schedule, Priority) has been in experimental status since its introduction. After extensive testing and usage, it's ready to be stabilized and made part of Mesa's core API. This promotes better time management in agent-based models and supports both discrete event simulation and hybrid approaches.
Usage Examples
The event scheduling system can now be imported from the stable namespace:
All existing functionality remains unchanged, this is purely a reorganization to stabilize the API.
Additional Notes
mesa.experimental.devs.eventliststill work via the simulator module's imports)Follows #3201, #3204 and #3266, discussed in #2921, part of #3132.