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,