[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-01-02 15:33:08 +00:00
parent 30c1a1c857
commit e580ac85d9
2 changed files with 7 additions and 4 deletions

View File

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

View File

@ -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"])
)