Quickstart
This page gets you from clone to first successful Res-IRF4 run.
1. Prerequisites
2. Setup
git clone https://github.com/CIRED/Res-IRF4.git
cd Res-IRF4
conda env create -f environment.yml
conda activate Res-IRF4
The expected conda environment name is Res-IRF4 (from environment.yml).
3. Run your first simulation
Run from the repository root:
python -m project.main -c project/config/config.json
4. Check that the run succeeded
A successful run creates a timestamped folder under project/output/:
ls -1 project/output | tail -n 5
Inside the latest run folder, you should see:
summary_run.pdfone directory per scenario
scenario-level
output.csvfilesimg/folders with generated figures
Useful CLI flags
Flag |
Description |
Default |
|---|---|---|
|
Path to configuration file |
|
|
Override simulation end year |
unset |
|
Number of CPUs for parallel runs |
|
For batch execution of multiple configs in a folder:
python -m project.runs -d project/config/policies/realistic
Edit a scenario quickly
Main config files are in project/config/.
High-impact fields:
"end": simulation horizon (for example2050)"file": inherit from a baseline config"policies": inject policy sets"simple": run simplifications ("quintiles": true, limited heating systems) for faster iterations
Performance notes
Memory can reach about 2 GB per scenario depending on detail level.
On typical laptops, keep parallel runs to about 2-3 scenarios at once.
See also