Probabillistic CA simulating forest fires
Find a file
2025-05-19 22:06:11 +01:00
src fire spotting triangulation mode change from 3 to 10 2025-05-19 21:51:47 +01:00
.gitignore final changes and corrections 2025-05-19 21:48:36 +01:00
pyproject.toml final changes and corrections 2025-05-19 21:48:36 +01:00
README.md basic README file 2025-05-19 22:06:11 +01:00

Forest-Fire CA

A stochastic 2D forest-fire cellular automaton with rich diagnostics and interactive visualization.

Requirements

  • Python 3.11

  • Install dependencies uv pip install -r pyproject.toml

Quick Start

  1. Main Simulation

    Take a peek into forest_ca.py and change the hyperparameters as you wish. Then run it and wait for the simulation to finish, visualize the plots and take a look at the .gif file generated in the directory python src/forest_ca.py

  2. Interactive simulation

    Run the live_file_dash.py file and open http://127.0.0.1:8050/ python src/live_fire_dash.py

  3. Helper files

    cmi.py and sweep.py are merely helper files that allowed us to make the testing phase a bit quicker and helped visualize information. (cmi.py calculates the conditional mutual information of the system and sweep.py helped automate tests and visualize a heatmap)