district heating bugfix when no progress is assumed
This commit is contained in:
parent
1b88dc7660
commit
fd789932dd
@ -2003,7 +2003,7 @@ def add_heat(n, costs):
|
||||
space_heat_demand = demand * w_space[sec][node]
|
||||
# normed time profile of space heat demand 'space_pu' (values between 0-1),
|
||||
# p_max_pu/p_min_pu of retrofitting generators
|
||||
space_pu = (space_heat_demand / space_heat_demand.max()).to_frame(name=node)
|
||||
space_pu = (space_heat_demand / space_heat_demand.max()).to_frame(name=node).fillna(0)
|
||||
|
||||
# minimum heat demand 'dE' after retrofitting in units of original heat demand (values between 0-1)
|
||||
dE = retro_data.loc[(ct, sec), ("dE")]
|
||||
@ -2015,6 +2015,9 @@ def add_heat(n, costs):
|
||||
* floor_area_node
|
||||
/ ((1 - dE) * space_heat_demand.max())
|
||||
)
|
||||
if space_heat_demand.max() == 0:
|
||||
capital_cost = capital_cost.apply(lambda b: 0 if b == np.inf else b)
|
||||
|
||||
# number of possible retrofitting measures 'strengths' (set in list at config.yaml 'l_strength')
|
||||
# given in additional insulation thickness [m]
|
||||
# for each measure, a retrofitting generator is added at the node
|
||||
|
Loading…
Reference in New Issue
Block a user