[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
30c1a1c857
commit
e580ac85d9
@ -836,8 +836,9 @@ def calculate_heat_losses(u_values, data_tabula, l_strength, temperature_factor)
|
||||
F_red_temp = map_to_lstrength(l_strength, F_red_temp)
|
||||
|
||||
Q_ht = (
|
||||
heat_transfer_perm2.T.groupby(level=1).sum().T
|
||||
.mul(F_red_temp.droplevel(0, axis=1))
|
||||
heat_transfer_perm2.T.groupby(level=1)
|
||||
.sum()
|
||||
.T.mul(F_red_temp.droplevel(0, axis=1))
|
||||
.mul(temperature_factor.reindex(heat_transfer_perm2.index, level=0), axis=0)
|
||||
)
|
||||
|
||||
|
@ -1725,14 +1725,16 @@ def add_heat(n, costs):
|
||||
heat_load = (
|
||||
heat_demand[[sector + " water", sector + " space"]]
|
||||
.T.groupby(level=1)
|
||||
.sum().T[nodes[name]]
|
||||
.sum()
|
||||
.T[nodes[name]]
|
||||
.multiply(factor)
|
||||
)
|
||||
|
||||
if name == "urban central":
|
||||
heat_load = (
|
||||
heat_demand.T.groupby(level=1)
|
||||
.sum().T[nodes[name]]
|
||||
.sum()
|
||||
.T[nodes[name]]
|
||||
.multiply(
|
||||
factor * (1 + options["district_heating"]["district_heating_loss"])
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user