From e8eb9df73fb6a67bffef3eb0f972f3cb3c256c07 Mon Sep 17 00:00:00 2001 From: martacki Date: Thu, 21 Dec 2023 11:07:23 +0100 Subject: [PATCH] generalize bus name to allow higher spatial resolution --- scripts/prepare_sector_network.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 8e43587f..2c2996d4 100755 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -2045,10 +2045,11 @@ def add_heat(n, costs): # add for each retrofitting strength a generator with heat generation profile following the profile of the heat demand for strength in strengths: + node_name = ' '.join([i for i in name.split(" ")[2::]]) n.madd( "Generator", [node], - suffix=" retrofitting " + strength + " " + name[6::], + suffix=" retrofitting " + strength + " " + node_name, bus=name, carrier="retrofitting", p_nom_extendable=True,