From 450f75a989dd9b84e27a7690a96107bdca4e8035 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Wed, 19 Jun 2024 15:54:23 +0200 Subject: [PATCH] bugfix: correctly read threshold capacity in add_brownfield --- doc/release_notes.rst | 1 + rules/solve_myopic.smk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/release_notes.rst b/doc/release_notes.rst index 2cedace6..8388946f 100644 --- a/doc/release_notes.rst +++ b/doc/release_notes.rst @@ -23,6 +23,7 @@ Upcoming Release * Partially revert https://github.com/PyPSA/pypsa-eur/pull/967 to return to old grouping year logic (which was mostly correct) +* Bugfix: Correctly read in threshold capacity below which to remove components from previous planning horizons in :mod:`add_brownfield`. PyPSA-Eur 0.11.0 (25th May 2024) ===================================== diff --git a/rules/solve_myopic.smk b/rules/solve_myopic.smk index 6220af2a..21fb7169 100644 --- a/rules/solve_myopic.smk +++ b/rules/solve_myopic.smk @@ -65,7 +65,7 @@ rule add_brownfield: H2_retrofit_capacity_per_CH4=config_provider( "sector", "H2_retrofit_capacity_per_CH4" ), - threshold_capacity=config_provider("existing_capacities", " threshold_capacity"), + threshold_capacity=config_provider("existing_capacities", "threshold_capacity"), snapshots=config_provider("snapshots"), drop_leap_day=config_provider("enable", "drop_leap_day"), carriers=config_provider("electricity", "renewable_carriers"),