You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* rename plot_scenario_comparison script
* change prefix
* add rule to compare scenarios
* update readme
* minor comments
* modularize Snakefile
* minor
* restore option for using the internal db
* convert units for internal ariadne DB
* minor
* improve existing heat pump estimate
* minor
* increase tolerance of assert
Copy file name to clipboardExpand all lines: README.md
+19-13Lines changed: 19 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,37 +12,43 @@ This repository contains the entire scientific project, including data sources a
12
12
13
13
## Getting ready
14
14
15
-
You need `conda` or `mamba` to run the analysis. Using conda, you can create an environment from within which you can run the analysis:
16
-
15
+
First of all, clone the PyPSA-DE repository using the version control system git in the command line.
17
16
```
18
-
conda env create -f envs/{os}.lock.yaml
17
+
git clone https://github.com/PyPSA/pypsa-de.git
19
18
```
20
19
21
-
Where `{os}` should be replaced with your operating system, e.g. for linux the command would be:
22
-
20
+
PyPSA-DE relies on a set of other Python packages to function. We manage these using [`pixi`](https://pixi.prefix.dev/latest/). Once pixi is installed, you can activate the project environment for your operating system and have access to all the PyPSA-DE dependencies from the command line:
23
21
```
24
-
conda env create -f envs/linux-64.lock.yaml
22
+
pixi shell
25
23
```
26
24
25
+
Tip: You can also set up automatic shell activation in several popular editors (e.g. in VSCode or Zed). Refer to the pixi documentation for the most up-to-date options.
26
+
27
+
If you cannot access pixi on your machine, you can also install using `conda`. For more details see the corresponding section in the [documentation](https://pypsa-eur.readthedocs.io/en/latest/installation.html#legacy-method-conda) of PyPSA-Eur
28
+
27
29
## Run the analysis
28
30
29
31
Before running any analysis with scenarios, the rule `build_scenarios` must be executed. This will create the file `config/scenarios.automated.yaml` which includes input data and CO2 targets from the IIASA Ariadne database as well as the specifications from the manual scenario file. [This file is specified in the config.de.yaml via they key `run:scenarios:manual_file` and located at `config/scenarios.manual.yaml` by default].
30
32
31
-
snakemake build_scenarios -f
33
+
snakemake -c1 build_scenarios
32
34
33
35
Note that the hierarchy of scenario files is the following: `scenarios.automated.yaml` > (any `explicitly specified --configfiles`) > `config.de.yaml `> `config.default.yaml `Changes in the file `scenarios.manual.yaml `are only taken into account if the rule `build_scenarios` is executed.
34
36
35
-
To run the analysis use
37
+
To run the analysis use, either
38
+
39
+
snakemake -call # The flag -cN specifies the number N of CPU cores available to snakemake
40
+
41
+
to generate the solved networks, or
36
42
37
-
snakemake ariadne_all
43
+
snakemake -c1 ariadne_all
38
44
39
-
This will run all analysis steps to reproduce results. If computational resources on your local machine are limited you may decrease the number of cores by adding, e.g. `-c4` to the call to get only 4 cores. For more option please refer to the [snakemake](https://snakemake.readthedocs.io/en/stable/) documentation.
45
+
which will generators additional outputs related to the Ariadne project. If you would like to use more computational resources you may increase the number of cores by adding, e.g. `-c4` to the call to get only 4 cores, or `-call` to use all cores. For more option please refer to the [snakemake](https://snakemake.readthedocs.io/en/stable/) documentation.
40
46
41
47
## Repo structure
42
48
43
-
*`config`: configuration files
44
-
*`data/pypsa-de`: Germany specific data from the Ariadne project
45
-
*`scripts`: contains the Python scripts for the workflow, the Germany specific code needed to run this repo is contained in `scripts/pypsa-de`
49
+
*`config`: configuration files, most importantly `config.de.yaml` and `scenarios.manual.yaml`
50
+
*`data/pypsa-de`: Germany specific data
51
+
*`scripts`: contains the Python scripts for the workflow, the pypsa-de specific code needed to run this repo is contained in `scripts/pypsa-de`
46
52
*`cutouts`: very large weather data cutouts supplied by atlite library (does not exist initially)
47
53
*`data`: place for raw data (does not exist initially)
48
54
*`resources`: place for intermediate/processing data for the workflow (does not exist initially)
0 commit comments