Open
Description
With the core examples being merged back into Mesa in #2358 and now available in examples
we can now start working our checklist:
- Divide models in stable/basic and experimental/advanced models
- Create two folders in Mesa examples:
examples/basic
andexamples/advanced
- Move over those 9 examples from mesa-examples, retaining git history.
- Remove from Mesa-examples (@EwoutH, Remove core examples from mesa-examples mesa-examples#225
- Update the examples, to:
- Use a standard structure:
agents.py
,model.py
andapp.py
- Use the latest features and be implemented elegantly
- Use the latest visualisation
- Use a standard structure:
- Include them in Read the Docs (@quaquel, like currently on the EMAworkbench)
- Update all other docs and readmes to point towards the new location
- Integrate the benchmarks models in them and run benchmarks on them (@EwoutH)
- Update the tests to run continuous testing (Test SolaraViz in CI mesa-examples#215)
- Add visualisation testing (Test SolaraViz in CI mesa-examples#215)
- We add batch_run testing (Test batch_run more extensive in CI #2184, Test batch_run examples in CI #2185, test_examples.py: Add batch_run tests mesa-examples#144)
- Include examples in coverage add advanced examples to rtd #2413
- Enabling ruff and/or ruff-format on (parts of) the examples (in
pyproject.toml
).- basic examples (excluding docstring: Ruff basic examples #2370)
- advanced examples reactivate ruff for advanced examples and include them in tests #2414
- Make examples importable (e.g.,
from mesa.examples import BoltzmannWealthModel
) (Importable examples #2381) - rework examples landing page on RTD. It should include installation instructions for the examples and should use the examples readme.md.
Feel free to add items, and put your name behind something if you want to pick it up!