-
-
Notifications
You must be signed in to change notification settings - Fork 1k
refactor: Remove dependence on model.schedule, add clock to Model #1942
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
c29f21d
refactor: Remove dependence on model.schedule
rht 85ec27f
model: Implement internal clock
rht 22c9e8d
time: Call self.model.advance_time() in step()
rht c37ba71
Ensure advance_time call in schedulers happen only once in a model step
rht 5a381b8
Turn model steps and time to be private attribute
rht db3710f
Rename advance_time to _advance_time
rht 02cefd8
Annotate model._steps
rht 3d7c3c1
Remove _advance_time from tests
rht cf94bc8
model: Rename _time to time_
rht 3355104
Rename _steps to steps_
rht 97ce7df
Revert applying _advance_time in schedulers step
rht 3663d3e
feat: Automatically call _advance_time right after model step()
EwoutH f56d343
fix: Make sure agent removes itself in schedule.remove
rht 34c4086
fix: Do step() wrapping in scheduler instead of model
rht 24233be
fix: JupyterViz: replace model.steps with model.steps_
rht 8e7754f
Rename steps_ -> _steps, time_ -> _time
rht eae90a6
agent_records: Use model.agents only when model has no scheduler
rht File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.