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 Sep 17, 2024
1 parent 43161a6 commit 610191e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ def add_ammonia(n, costs):
bus2=nodes + " H2",
p_nom=p_nom if no_relocation else 0,
p_nom_extendable=False if no_relocation else True,
p_max_pu=1 if no_relocation else 0, # so that no imports can substitute
p_max_pu=1 if no_relocation else 0, # so that no imports can substitute
p_min_pu=options["min_part_load_haber_bosch"],
carrier="Haber-Bosch",
efficiency=1 / costs.at["Haber-Bosch", "electricity-input"],
Expand Down Expand Up @@ -3303,7 +3303,7 @@ def add_industry(n, costs):
marginal_cost=marginal_cost,
p_nom=p_nom if no_relocation else 0,
p_nom_extendable=False if no_relocation else True,
p_min_pu=1 if no_relocation else 0, # so that no imports can substitute
p_min_pu=1 if no_relocation else 0, # so that no imports can substitute
bus0=nodes,
bus1="EU HBI",
bus2=nodes + " H2",
Expand All @@ -3323,7 +3323,7 @@ def add_industry(n, costs):
capital_cost=costs.at["electric arc furnace", "fixed"] / electricity_input,
p_nom=p_nom if no_relocation else 0,
p_nom_extendable=False if no_relocation else True,
p_min_pu=1 if no_relocation else 0, # so that no imports can substitute
p_min_pu=1 if no_relocation else 0, # so that no imports can substitute
bus0=nodes,
bus1="EU steel",
bus2="EU HBI",
Expand Down Expand Up @@ -3993,8 +3993,7 @@ def add_industry(n, costs):
)
else:
p_set = (
-industrial_demand.loc[(nodes, sectors_b), "process emission"]
.sum()
-industrial_demand.loc[(nodes, sectors_b), "process emission"].sum()
/ nhours
)

Expand Down

0 comments on commit 610191e

Please sign in to comment.