Skip to content

Mesa 3.0 beta 1

Pre-release
Pre-release
Compare
Choose a tag to compare
@jackiekazil jackiekazil released this 18 Oct 04:00
· 159 commits to main since this release

Highlights

Mesa 3.0 beta 1 is our last beta release before the Mesa 3.0 stable release. We are restructuring our examples and have move 9 core examples from mesa-examples to mesa itself (#2358). The 5 basic examples are now directly importable (#2381):

from examples.basic import BoidFlockers, BoltzmannWealthModel, ConwaysGameOfLife, Schelling, VirusOnNetwork

The 5 basic examples will always use stable Mesa features, we are also working on 4 more advanced example which can also include experimental features.

All our core examples can now be viewed in the examples folder. mesa-examples will continue to exists for user showcases. We're also working on making the examples visible in the ReadtheDocs (#2382) and on an website (mesa-examples#139). Follow all our work on the examples in this tracking issue #2364.

Furthermore, the visualizations are improved by making visualization elements scalable and more clearly labeling the plots, and the Model now has an rng argument for an SPEC 7 compliant NumPy random number generator (#2352).

What's Changed

⚠️ Breaking changes

  • replace model with random in AgentSet init by @quaquel in #2350

🧪 Experimental features

  • cell space: Add convenience properties for grid width and height by @quaquel in #2348
  • Bugfix for deepcopy / pickling discrete spaces by @quaquel in #2378

🎉 New features added

  • Move core example models back (v2) by @EwoutH in #2358
  • Add Model.rng for SPEC-7 compliant numpy random number generation by @quaquel in #2352

🛠 Enhancements made

🐛 Bugs fixed

  • experimental init: Fix Solara import by making it lazy by @EwoutH in #2357
  • fix: pass model.random to schedulers by @quaquel in #2359
  • fix: register agent after creating unique_id and pos attributes by @wang-boyu in #2368
  • solara: viz tutorial: fix histogram code by @Corvince in #2379

🔍 Examples updated

📜 Documentation improvements

🔧 Maintenance

Full Changelog: v3.0.0b0...v3.0.0b1