Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 8, 2025
1 parent 76641b2 commit 967c8b8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -2259,7 +2259,6 @@ def add_heat(
)

if options["tes"]:

n.add("Carrier", f"{heat_system} water tanks")

tes_time_constant_days = options["tes_tau"][
Expand All @@ -2273,21 +2272,24 @@ def add_heat(
carrier=f"{heat_system} water tanks",
efficiency_store=costs.at[
heat_system.central_or_decentral + " water tank charger",
"efficiency"
"efficiency",
],
max_hours=costs.at[
heat_system.central_or_decentral + " water tank storage",
"energy to power ratio"
"energy to power ratio",
],
efficiency_dispatch=costs.at[
heat_system.central_or_decentral + " water tank discharger",
"efficiency"
"efficiency",
],
p_nom_extendable=True,
standing_loss=1 - np.exp(-1 / 24 / tes_time_constant_days),
capital_cost=costs.at[
heat_system.central_or_decentral + " water tank storage", "fixed"] * costs.at[
heat_system.central_or_decentral + " water tank storage", "energy to power ratio"
heat_system.central_or_decentral + " water tank storage", "fixed"
]
* costs.at[
heat_system.central_or_decentral + " water tank storage",
"energy to power ratio",
],
lifetime=costs.at[
heat_system.central_or_decentral + " water tank storage", "lifetime"
Expand All @@ -2296,7 +2298,6 @@ def add_heat(
)

if heat_system == HeatSystem.URBAN_CENTRAL:

n.add("Carrier", f"{heat_system} water pits")

n.add(
Expand All @@ -2315,9 +2316,8 @@ def add_heat(
],
p_nom_extendable=True,
standing_loss=1 - np.exp(-1 / 24 / tes_time_constant_days),
capital_cost=costs.at["central water pit storage", "fixed"] * costs.at[
"central water pit storage", "energy to power ratio"
],
capital_cost=costs.at["central water pit storage", "fixed"]
* costs.at["central water pit storage", "energy to power ratio"],
lifetime=costs.at["central water pit storage", "lifetime"],
cyclic_state_of_charge=True,
)
Expand Down

0 comments on commit 967c8b8

Please sign in to comment.