Quick Start
System requirements
With the low-resolution settings, PyPSA-China-PIK will run on a local machine or laptop. Solving a full year at hourly resolution will require a high performance cluster or server with around 50GB of RAM - depending on your settings.
Installation
-
Install the conda package manager
It may be possible to run the workflow with a better manager such as
uvbut it will not work out of the boxConda tips
Conda is a rather large install with a GUI and features not required by PyPSA-China. You may prefer to use the lighter miniconda, which is our recommendation.
You can check whether you already have conda with
which anacondaorwhich conda. Newer condas have a faster dependcy solver - as the package is rather large we strongly recommend you update tov> 2024.10.Conda tips
Conda is a rather large install with a GUI and features not required by PyPSA-China. You may prefer to use the lighter miniconda, which is our recommendation
You can check whether you already have conda with
where anacondaorwhere conda. Newer condas have a faster dependcy solver - as the package is rather large we strongly recommend you update tov> 2024.9. -
Setup the environment: This can take a long time
-
Activate environment
-
Fetch data
Sources
Manually fetch the data (faster but requires copy-pasting): https://zenodo.org/records/16810831
Destinations are in
resources/datafolders (rasters, cutouts, existing infrastructure).A back-up data source is the PyPSA-China paper https://zenodo.org/records/13987282
-
Install a Solver: e.g. gurobi HiGHS or cplex. The current default configuration uses gurobi.
- Run locally