[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] 2023-12-21 08:41:17 +00:00
parent 4d63a3f21b
commit dfc2f06033

View File

@ -1722,16 +1722,18 @@ def add_heat(n, costs):
if sector in name: if sector in name:
heat_load = ( heat_load = (
heat_demand[[sector + " water", sector + " space"]].T heat_demand[[sector + " water", sector + " space"]]
.groupby(level=1) .T.groupby(level=1)
.sum().T[nodes[name]] .sum()
.T[nodes[name]]
.multiply(factor) .multiply(factor)
) )
if name == "urban central": if name == "urban central":
heat_load = ( heat_load = (
heat_demand.T.groupby(level=1) heat_demand.T.groupby(level=1)
.sum().T[nodes[name]] .sum()
.T[nodes[name]]
.multiply( .multiply(
factor * (1 + options["district_heating"]["district_heating_loss"]) factor * (1 + options["district_heating"]["district_heating_loss"])
) )