Energy Modeling Case Study for Colombia
This repository uses Git submodules. To clone the repository along with its submodules, use the following command:
git clone --recursive https://github.com/pypsa-meets-earth/pypsa-colombia.gitIf you have already cloned the repository without the --recursive flag, you can initialize and update the submodules with:
git submodule update --init --recursive-
Clone the repository as described above.
-
Navigate to the project directory:
cd pypsa-colombia -
Install the necessary dependencies using
condaormamba:mamba env create -f submodules/pypsa-earth-osm/envs/environment.yaml
-
You can check the (documentation)(https://pypsa-earth.readthedocs.io/en/latest/installation.html#install-dependencies) to install using lockfiles for your OS.
-
Activate
pypsa-earthenvironment:conda activate pypsa-earth
Note! At the moment, head of the PyPSA-Earth-osm submodule points to main branch of PyPSA-meets-Earth/pypsa-earth-osm repository.
This project utilizes snakemake to automate the execution of scripts, ensuring efficient and reproducible workflows.
To run the power model for the base scenario, use the following command from the root directory:
(Optional) For a dry-run, use the following command snakemake -call solve_all_networks --configfile configs/config.base.yaml -n
snakemake -call solve_all_networks --configfile configs/config.base.yaml