Skip to content

remove model.steps#3328

Merged
quaquel merged 6 commits intomesa:mainfrom
quaquel:remove_steps
Feb 18, 2026
Merged

remove model.steps#3328
quaquel merged 6 commits intomesa:mainfrom
quaquel:remove_steps

Conversation

@quaquel
Copy link
Copy Markdown
Member

@quaquel quaquel commented Feb 16, 2026

This PR removes model.steps and updates all usages elsewhere to model.time, in line with the time-centric nature of Mesa 4. It also simplifies some of the step wrapping that was needed to advance model.steps.

@quaquel quaquel added the breaking Release notes label label Feb 16, 2026
@github-actions
Copy link
Copy Markdown

Performance benchmarks:

Model Size Init time [95% CI] Run time [95% CI]
BoltzmannWealth small 🔵 +1.7% [+0.9%, +2.5%] 🔵 -2.2% [-2.7%, -1.8%]
BoltzmannWealth large 🔵 +1.5% [+0.9%, +2.1%] 🔵 +1.7% [+0.6%, +2.8%]
Schelling small 🔵 +2.5% [+2.1%, +2.8%] 🔵 +0.9% [+0.8%, +1.0%]
Schelling large 🔵 +1.0% [+0.4%, +1.7%] 🔵 +3.4% [+1.9%, +4.8%]
WolfSheep small 🔵 +2.4% [+1.8%, +2.9%] 🔵 +1.7% [+1.5%, +1.9%]
WolfSheep large 🔴 +5.6% [+4.7%, +6.4%] 🔴 +12.6% [+11.8%, +13.6%]
BoidFlockers small 🔵 +0.3% [+0.0%, +0.6%] 🔵 +0.5% [+0.3%, +0.7%]
BoidFlockers large 🔵 +1.5% [+1.2%, +1.7%] 🔵 +1.3% [+1.1%, +1.5%]

@quaquel
Copy link
Copy Markdown
Member Author

quaquel commented Feb 18, 2026

The fact that mesa-examples just runs on this PR shows that we can indeed just remove model.steps.

Copy link
Copy Markdown
Member

@EwoutH EwoutH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, quite clean, thanks.

Mesa-examples was indeed already cleaned up.

@quaquel quaquel merged commit ef61068 into mesa:main Feb 18, 2026
14 of 15 checks passed
@quaquel quaquel deleted the remove_steps branch February 18, 2026 09:28
Krishsharma179 pushed a commit to Krishsharma179/mesa that referenced this pull request Feb 21, 2026
* remove model.steps

* update tutorials

* Update test_schedule_run.py
@EwoutH EwoutH mentioned this pull request Mar 13, 2026
42 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Release notes label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants