generalize bus name to allow higher spatial resolution
This commit is contained in:
parent
146fb170d8
commit
e8eb9df73f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user