generalize bus name to allow higher spatial resolution

This commit is contained in:
martacki 2023-12-21 11:07:23 +01:00
parent 146fb170d8
commit e8eb9df73f

View File

@ -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,