Updated Forest Fire notebook compatible with Mesa 4.x.
The original forest_fire notebook uses deprecated Mesa 2.x APIs:
BatchRunner→ removed in Mesa 4fire.run_model()→ deprecatedfire.dc→ renamed tofire.datacollectordf.BurnedOut→ column is"Burned Out"in batch_run output
This repo provides a working Mesa 4.x compatible version of the forest fire example with:
batch_run()instead ofBatchRunner- Updated DataCollector access
- Correct column names
- SolaraViz visualization
pip install mesa[solara]
python forest_fire_m4.py
solara run app.pyCreated to help Mesa community fix issue #421.