A model of the Illinois electricity system built with PyPSA.
conda
or mamba
installed[!WARNING] Running
conda update --all
may downgradepypsa
to 0.25.x to accomodate an update topyomo
. This will break the code. After running update, runconda update pypsa
to fix.
git clone https://github.com/ucsusa/pypsa-illinois.git
cd pypsa-illinois
mamba env create # mamba and conda may be used interchangeably, here
mamba activate pypsa-illinois
.env
fileUsers should copy the .env.template
file into a new file simply called .env
.
This file contains "secret" information, such as API keys, emails, and other data
that should remain local. In order to run the current model, users must have API keys
from the following organizations:
These keys may be added directly to the .env
file.
This project uses the workflow management tool, snakemake
, to create a reproducible data pipeline.
Running the command
snakemake --cores=1
will run the workflow illustrated in the directed acyclic graph (DAG) shown below.
To reproduce the sensitivity runs follow all of the set up steps described above (through step three). Then run
python sensivitiy-script.py
Users can optionally use the 01-results-process
notebook in the notebooks
folder to aggregate the capacity and the generation results.