Skip to content

Commit 98a27b5

Browse files
committed
Merge branch 'merge-october-13'
2 parents e0c6e84 + 6bb8bde commit 98a27b5

26 files changed

+13289
-361
lines changed

.github/workflows/test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ jobs:
6969
path: |
7070
data
7171
cutouts
72-
data/ariadne_database.csv
7372
key: data-cutouts-${{ env.WEEK }}
7473

7574
- uses: conda-incubator/setup-miniconda@v3

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ repos:
4343
rev: v2.15.0
4444
hooks:
4545
- id: pretty-format-yaml
46-
exclude: (pinned\.yaml|\.lock\.yaml)$
46+
exclude: (\.lock\.yaml)$
4747
args: [--autofix, --indent, "2", --preserve-quotes]
4848

4949
# Format Snakemake rule / workflow files

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
2+
3+
- Added the IIASA database to the repository and disabled re-downloading it by default.
4+
- Simplified IIASA database download, rename `iiasa_database` config section to `pypsa-de`
25
- Updated technology-data to v0.13.4
3-
- Simplified IIASA database download
46
- Bugfix: Enforce stricter H2 derivative import limit to avoid that exports of one type of derivative compensate for imports of another
57
- Added an option to source mobility demand from UBA MWMS (Projektionsbericht 2025) for the years 2025-2035
68
- Renamed functions and script for exogenous mobility demand

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ PyPSA-DE is a softfork of PyPSA-EUR. As such, large parts of the functionality a
8787
- `co2_budget_DE_source` specify the carbon trajectory for Germany: Following the projections of the Umweltbundestamt (`UBA`) or targeting net zero with the Klimaschutzgesetz(`KSG`)
8888
- `costs:NEP` and `costs:transmission` - specify which year of the Netzentwicklungsplan should be used as basis for the transmission line costs (`2021,2023`) and if new HVDC links should be built with `overhead` or `underground` cables
8989

90+
## Data sources
91+
92+
`ariadne-data/ariadne-database.csv`
93+
94+
* **Source:** Kopernikus Projekt Ariadne
95+
* **Link:** [Szenarien-Explorer](https://ariadne2.apps.ece.iiasa.ac.at/explorer)
96+
* **License:** CC-BY 4.0
97+
* **Description:** Results from the [Ariadne Report: Die Energiewende kosteneffizient gestalten](https://ariadneprojekt.de/publikation/report-szenarien-zur-klimaneutralitat-2045/)
98+
9099
## License
91100

92101
The code in this repo is MIT licensed, see `./LICENSE.md`.

Snakefile

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ rule modify_cost_data:
327327
"scripts/pypsa-de/modify_cost_data.py"
328328

329329

330-
if config["enable"]["retrieve"]:
330+
if config["pypsa-de"]["retrieve_ariadne_database"]:
331331

332332
rule retrieve_ariadne_database:
333333
output:
@@ -339,6 +339,12 @@ if config["enable"]["retrieve"]:
339339
script:
340340
"scripts/pypsa-de/retrieve_ariadne_database.py"
341341

342+
def get_ariadne_database(w):
343+
if config["pypsa-de"]["retrieve_ariadne_database"]:
344+
return "data/ariadne_database.csv"
345+
else:
346+
return "ariadne-data/ariadne_database.csv"
347+
342348

343349
if config["enable"]["retrieve"]:
344350

@@ -401,7 +407,7 @@ rule build_exogenous_mobility_data:
401407
aviation_demand_factor=config_provider("sector", "aviation_demand_factor"),
402408
energy_totals_year=config_provider("energy", "energy_totals_year"),
403409
input:
404-
ariadne="data/ariadne_database.csv",
410+
ariadne=get_ariadne_database,
405411
energy_totals=resources("energy_totals.csv"),
406412
output:
407413
mobility_data=resources(
@@ -631,7 +637,7 @@ ruleorder: modify_industry_demand > build_industrial_production_per_country_tomo
631637

632638
rule modify_existing_heating:
633639
input:
634-
ariadne="data/ariadne_database.csv",
640+
ariadne=get_ariadne_database,
635641
existing_heating="data/existing_infrastructure/existing_heating_raw.csv",
636642
output:
637643
existing_heating=resources("existing_heating.csv"),
@@ -673,7 +679,7 @@ rule modify_industry_demand:
673679
params:
674680
reference_scenario=config_provider("pypsa-de", "reference_scenario"),
675681
input:
676-
ariadne="data/ariadne_database.csv",
682+
ariadne=get_ariadne_database,
677683
industrial_production_per_country_tomorrow=resources(
678684
"industrial_production_per_country_tomorrow_{planning_horizons}.csv"
679685
),
@@ -798,7 +804,7 @@ rule plot_ariadne_variables:
798804
reference_scenario=config_provider("pypsa-de", "reference_scenario"),
799805
input:
800806
exported_variables_full=RESULTS + "ariadne/exported_variables_full.xlsx",
801-
ariadne_database="data/ariadne_database.csv",
807+
ariadne_database=get_ariadne_database,
802808
output:
803809
primary_energy=RESULTS + "ariadne/primary_energy.png",
804810
primary_energy_detailed=RESULTS + "ariadne/primary_energy_detailed.png",
@@ -865,7 +871,7 @@ rule build_scenarios:
865871
scenarios=config["run"]["name"],
866872
leitmodelle=config["pypsa-de"]["leitmodelle"],
867873
input:
868-
ariadne_database="data/ariadne_database.csv",
874+
ariadne_database=get_ariadne_database,
869875
scenario_yaml=config["run"]["scenarios"]["manual_file"],
870876
output:
871877
scenario_yaml=config["run"]["scenarios"]["file"],

0 commit comments

Comments
 (0)