Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ariadne2 pypsa=0.31.0 #1370

Merged
merged 41 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
7798e12
feat: add temperature reduction to workflow
amos-schledorn Sep 12, 2024
c252d17
chore: fix name change issues
amos-schledorn Sep 12, 2024
a83909c
feat: update input/output of dependent rules
amos-schledorn Sep 12, 2024
31e6e3a
feat: add {planning _horizons} wildcard to COP input in myopic rules
amos-schledorn Sep 12, 2024
85656c0
fix: exponential temperature reduction
amos-schledorn Sep 12, 2024
881cf01
feat: add {planning_horizons} wildcard to solve_perfect
amos-schledorn Sep 12, 2024
cdfcf23
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 12, 2024
69cad8e
style: "_today" -> "_baseyear"
amos-schledorn Sep 12, 2024
39ae475
doc: update configtables
amos-schledorn Sep 12, 2024
d5c6135
style: "_today" -> "_baseyear" (config)
amos-schledorn Sep 12, 2024
6c112e3
Merge remote-tracking branch 'origin/annual-temperature-reduction' in…
amos-schledorn Sep 12, 2024
a109899
feat: update heat pump efficiency in add_brownfield
amos-schledorn Sep 13, 2024
d218a08
Merge remote-tracking branch 'origin/master' into annual-temperature-…
amos-schledorn Sep 17, 2024
a5be8b4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 17, 2024
7bf57ad
fix: pass planning_horizons to add_brownfield
amos-schledorn Sep 17, 2024
94d628f
Merge branch 'master' into annual-temperature-reduction
amos-schledorn Sep 17, 2024
8871a2d
feat: update COPs for perfect foresight
amos-schledorn Sep 17, 2024
4107e31
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 17, 2024
30f7dce
update release notes
amos-schledorn Sep 17, 2024
bf87e8c
Merge remote-tracking branch 'origin/annual-temperature-reduction' in…
amos-schledorn Sep 17, 2024
635d3d6
Update doc/release_notes.rst
amos-schledorn Sep 30, 2024
f1f0d20
Update scripts/build_central_heating_temperature_profiles/run.py
amos-schledorn Sep 30, 2024
ecbb228
Update scripts/build_central_heating_temperature_profiles/run.py
amos-schledorn Sep 30, 2024
bdf1d7d
Merge branch 'master' into annual-temperature-reduction
amos-schledorn Sep 30, 2024
85a878b
Update build_central_heating_temperature_profiles.run
amos-schledorn Sep 30, 2024
b27227f
style: simplify update_heat_pump_efficiency functions
amos-schledorn Sep 30, 2024
a9853b0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 30, 2024
9950384
Merge branch 'master' into annual-temperature-reduction
amos-schledorn Oct 1, 2024
5095a74
Update README.md
fneum Oct 8, 2024
267e540
[pre-commit.ci] pre-commit autoupdate (#1352)
pre-commit-ci[bot] Oct 10, 2024
2e6132c
Merge branch 'master' into annual-temperature-reduction
fneum Oct 10, 2024
b9416ae
transmission_projects: update AC line types to high-temperature lines…
p-glaum Oct 10, 2024
6dd41b8
Bugfix of solar constraint in post discretization (#1343)
toniseibold Oct 10, 2024
5402088
Merge pull request #1290 from PyPSA/annual-temperature-reduction
amos-schledorn Oct 10, 2024
5fa8007
Update NEP DC20 to underground
nworbmot Oct 13, 2024
4435f02
fix: remove broken pre-commit rule (docformatter) (#1362)
lkstrp Oct 15, 2024
0e0191a
prepare for pypsa `0.31.0` (#1340)
lkstrp Oct 15, 2024
be83b59
[github-actions.ci] Update fixed environment (#1363)
github-actions[bot] Oct 15, 2024
0026b0f
fix: more robust `progress_retrieve` (#1361)
lkstrp Oct 16, 2024
ba8db9d
Merge branch 'master' into ariadne2-pypsa=0.31.0
lindnemi Oct 17, 2024
c853dca
madd to add
lindnemi Oct 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exclude: "^LICENSES"

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
Expand Down Expand Up @@ -37,12 +37,14 @@ repos:
types_or: [python, rst, markdown]
files: ^(scripts|doc)/

# Make docstrings PEP 257 compliant
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
args: ["--in-place", "--make-summary-multi-line", "--pre-summary-newline"]
# Make docstrings PEP 257 compliant
# Broken for pre-commit<=4.0.0
# See https://github.com/PyCQA/docformatter/issues/293
# - repo: https://github.com/PyCQA/docformatter
# rev: v1.7.5
# hooks:
# - id: docformatter
# args: ["--in-place", "--make-summary-multi-line", "--pre-summary-newline"]

- repo: https://github.com/keewis/blackdoc
rev: v0.3.9
Expand All @@ -51,7 +53,7 @@ repos:

# Formatting with "black" coding style
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.8.0
rev: 24.10.0
hooks:
# Format Python files
- id: black
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SPDX-License-Identifier: CC-BY-4.0
![Size](https://img.shields.io/github/repo-size/pypsa/pypsa-eur)
[![Zenodo PyPSA-Eur](https://zenodo.org/badge/DOI/10.5281/zenodo.3520874.svg)](https://doi.org/10.5281/zenodo.3520874)
[![Zenodo PyPSA-Eur-Sec](https://zenodo.org/badge/DOI/10.5281/zenodo.3938042.svg)](https://doi.org/10.5281/zenodo.3938042)
[![Snakemake](https://img.shields.io/badge/snakemake-≥7.7.0-brightgreen.svg?style=flat)](https://snakemake.readthedocs.io)
[![Snakemake](https://img.shields.io/badge/snakemake-≥8.14.0-brightgreen.svg?style=flat)](https://snakemake.readthedocs.io)
[![REUSE status](https://api.reuse.software/badge/github.com/pypsa/pypsa-eur)](https://api.reuse.software/info/github.com/pypsa/pypsa-eur)
[![Stack Exchange questions](https://img.shields.io/stackexchange/stackoverflow/t/pypsa)](https://stackoverflow.com/questions/tagged/pypsa)

Expand Down
7 changes: 4 additions & 3 deletions config/config.default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ sector:
2050: 1.0
district_heating_loss: 0.15
supply_temperature_approximation:
max_forward_temperature:
max_forward_temperature_baseyear:
FR: 110
DK: 75
DE: 109
Expand All @@ -465,13 +465,14 @@ sector:
PL: 130
SE: 102
IT: 90
min_forward_temperature:
min_forward_temperature_baseyear:
DE: 82
return_temperature:
return_temperature_baseyear:
DE: 58
lower_threshold_ambient_temperature: 0
upper_threshold_ambient_temperature: 10
rolling_window_ambient_temperature: 72
relative_annual_temperature_reduction: 0.01
heat_source_cooling: 6 #K
heat_pump_cop_approximation:
refrigerant: ammonia
Expand Down
2 changes: 1 addition & 1 deletion data/transmission_projects/nep/new_links.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ DC2,Osterath,Philippsburg,2000,299,in_permitting,2026,False,"{url:https://www.ne
DC3,Brunsbüttel,Großgartach,2000,694,in_permitting,2028,True,"{url:https://www.netzentwicklungsplan.de/sites/default/files/2024-04/NEP_2037_2045_V2023_Anhang_2E_Aktualisierung_April_2024_%28komprimiert%29.pdf,TYNDP 2022: 235,""location0"":""Brunsbüttel"",""location1"":""Großgartach""",9.1395423,53.8972549,9.1258701,49.1425406
DC4,Wilster ,Bergrheinfeld,2000,540,in_permitting,2028,True,"{url:https://www.netzentwicklungsplan.de/sites/default/files/2024-04/NEP_2037_2045_V2023_Anhang_2E_Aktualisierung_April_2024_%28komprimiert%29.pdf,TYNDP 2022: 235,""location0"":""Wilster "",""location1"":""Bergrheinfeld""",9.3741366,53.9233519,10.1810033,50.0082136
DC5,Wolmirstedt,Isar/Bayern,2000,539,in_permitting,2027,True,"{url:https://www.netzentwicklungsplan.de/sites/default/files/2024-04/NEP_2037_2045_V2023_Anhang_2E_Aktualisierung_April_2024_%28komprimiert%29.pdf,TYNDP 2022: 130, name:SuedOstLink,""location0"":""Wolmirstedt"",""location1"":""Isar/Bayern""",11.6267388,52.2484924,11.5745421,47.6691308
DC20,Klein Rogahn,Isar/Bayern,2000,759,in_permitting,2030,False,"{url:https://www.netzentwicklungsplan.de/sites/default/files/2024-04/NEP_2037_2045_V2023_Anhang_2E_Aktualisierung_April_2024_%28komprimiert%29.pdf, name:SuedOstLink+,""location0"":""Klein Rogahn"",""location1"":""Isar/Bayern""",11.3482229,53.6044461,11.5745421,47.6691308
DC20,Klein Rogahn,Isar/Bayern,2000,759,in_permitting,2030,True,"{url:https://www.netzentwicklungsplan.de/sites/default/files/2024-04/NEP_2037_2045_V2023_Anhang_2E_Aktualisierung_April_2024_%28komprimiert%29.pdf, name:SuedOstLink+,""location0"":""Klein Rogahn"",""location1"":""Isar/Bayern""",11.3482229,53.6044461,11.5745421,47.6691308
7 changes: 4 additions & 3 deletions doc/configtables/sector.csv
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ district_heating,--,,`prepare_sector_network.py <https://github.com/PyPSA/pypsa-
-- progress,--,Dictionary with planning horizons as keys., Increase of today's district heating demand to potential maximum district heating share. Progress = 0 means today's district heating share. Progress = 1 means maximum fraction of urban demand is supplied by district heating
-- district_heating_loss,--,float,Share increase in district heat demand in urban central due to heat losses
-- supply_temperature_approximation,,,
-- -- max_forward_temperature,°C,Dictionary with country codes as keys. One key must be 'default'., Max. forward temperature in district heating (if ambient temperature lower-or-equal `lower_threshold_ambient_temperature`)
-- -- min_forward_temperature,°C,Dictionary with country codes as keys. One key must be 'default'., Min. forward temperature in district heating (if ambient temperature higher-or-equal `upper_threshold_ambient_temperature`)
-- -- return_temperature,°C,Dictionary with country codes as keys. One key must be 'default'.,Return temperature in district heating. Must be lower than forward temperature
-- -- max_forward_temperature_baseyear,°C,Dictionary with country codes as keys. One key must be 'default'., Max. forward temperature in district heating in baseyear (if ambient temperature lower-or-equal `lower_threshold_ambient_temperature`)
-- -- min_forward_temperature_baseyear,°C,Dictionary with country codes as keys. One key must be 'default'., Min. forward temperature in district heating in baseyear (if ambient temperature higher-or-equal `upper_threshold_ambient_temperature`)
-- -- return_temperature_baseyear,°C,Dictionary with country codes as keys. One key must be 'default'.,Return temperature in district heating in baseyear . Must be lower than forward temperature
-- -- lower_threshold_ambient_temperature,°C,float, Assume `max_forward_temperature` if ambient temperature is below this threshold
-- -- upper_threshold_ambient_temperature,°C,float, Assume `min_forward_temperature` if ambient temperature is above this threshold
-- -- rolling_window_ambient_temperature, h, int, Rolling window size for averaging ambient temperature when approximating supply temperature
-- -- relative_annual_temperature_reduction,, float, Relative annual reduction of district heating forward and return temperature - defaults to 0.01 (1%)
-- heat_source_cooling,K,float,Cooling of heat source for heat pumps
-- heat_pump_cop_approximation,,,
-- -- refrigerant,--,"{ammonia, isobutane}",Heat pump refrigerant assumed for COP approximation
Expand Down
1 change: 1 addition & 0 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ ariadne2 Branch
Upcoming Release
================

* Added option to reduce central heating forward temperatures by annual percentage (see rule :mod:`build_central_heating_temperature_profiles`). This makes COP profiles and heat pump efficiencies planning-horizon-dependent. Myopic and perfect foresight modes were adjusted accordingly to update COPs of existing heat pumps in preceding years to adjusted temperatures.

* Rearranged workflow to cluster the electricity network before calculating
renewable profiles and adding further electricity system components.
Expand Down
Loading
Loading