mesa / mesa/mesa-examples

forest_fire notebook broken with Mesa 4

Open
#421 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
252
Forks
279
Avg merge
8d 9h
Merged PRs (30d)
2

Description

The Forest Fire notebook is broken with Mesa 4 due to several deprecated
or removed APIs.

Errors when running the notebook:
- `from mesa.batchrunner import BatchRunner` — BatchRunner removed in Mesa 4
- `fire.run_model()` — deprecated, no longer works
- `fire.dc` — attribute renamed to `fire.datacollector`
- `df.BurnedOut` — column name is `"Burned Out"` in batch_run output

Environment:
- Mesa 4.x
- Python 3.11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the Forest Fire notebook and run it in a Python 3.11 environment with Mesa 4.x to reproduce the listed errors. Trace the BatchRunner import, model execution call, datacollector attribute, and Burned Out column reference. Done means the notebook runs successfully and those deprecated or renamed APIs no longer cause errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.