simplify node_name formulation

This commit is contained in:
martacki 2023-12-21 11:12:54 +01:00
parent 5ab9d149ba
commit 7d64a73382

View File

@ -2045,7 +2045,7 @@ def add_heat(n, costs):
# add for each retrofitting strength a generator with heat generation profile following the profile of the heat demand # add for each retrofitting strength a generator with heat generation profile following the profile of the heat demand
for strength in strengths: for strength in strengths:
node_name = " ".join([i for i in name.split(" ")[2::]]) node_name = " ".join(name.split(" ")[2::])
n.madd( n.madd(
"Generator", "Generator",
[node], [node],