From 02e434c8b019746d7914e69a824c40102691cb81 Mon Sep 17 00:00:00 2001 From: Thomas Gilon Date: Thu, 2 May 2024 17:22:56 +0200 Subject: [PATCH] Fix non steel related coal demand during transition (using sector_ratios) --- doc/release_notes.rst | 2 ++ scripts/prepare_sector_network.py | 8 +------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/doc/release_notes.rst b/doc/release_notes.rst index d42b149f..42a76087 100644 --- a/doc/release_notes.rst +++ b/doc/release_notes.rst @@ -181,6 +181,8 @@ Upcoming Release * Fix custom busmap read in `cluster_network`. +* Fix non steel related coal demand during transition (using `sector_ratios_fraction_future`). + PyPSA-Eur 0.10.0 (19th February 2024) ===================================== diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index b6ec98b2..32b196ee 100755 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -3070,13 +3070,7 @@ def add_industry(n, costs): p_set=p_set, ) - primary_steel = get( - snakemake.config["industry"]["St_primary_fraction"], investment_year - ) - dri_steel = get(snakemake.config["industry"]["DRI_fraction"], investment_year) - bof_steel = primary_steel - dri_steel - - if bof_steel > 0: + if (industrial_demand["coke"].sum() + industrial_demand["coal"].sum()) != 0: add_carrier_buses(n, "coal") mwh_coal_per_mwh_coke = 1.366 # from eurostat energy balance