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 23, 2025
1 parent 350b0fe commit d4b6071
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
4 changes: 3 additions & 1 deletion scripts/pypsa-de/export_ariadne_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ def _get_h2_fossil_fraction(n):
.sum()
)

h2_fossil_fraction = total_h2_supply.filter(like="SMR").sum() / total_h2_supply.sum()
h2_fossil_fraction = (
total_h2_supply.filter(like="SMR").sum() / total_h2_supply.sum()
)

return h2_fossil_fraction

Expand Down
18 changes: 13 additions & 5 deletions scripts/pypsa-de/modify_cost_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,23 @@ def carbon_component_fossils(costs, co2_price):
costs.at[("Fischer-Tropsch", "efficiency"), "value"] = (
1 / costs.at[("Fischer-Tropsch", "hydrogen-input"), "value"]
)

# increase FOM of offshore wind connection (fix for costs.csv)
costs.loc[("offwind-dc-connection-submarine", "FOM"), "value"] = 0.35
costs.loc[("offwind-dc-connection-submarine", "FOM"), "unit"] = costs.at[("offwind", "FOM"), "unit"]
costs.loc[("offwind-dc-connection-submarine", "FOM"), "unit"] = costs.at[
("offwind", "FOM"), "unit"
]
costs.loc[("offwind-dc-connection-underground", "FOM"), "value"] = 0.35
costs.loc[("offwind-dc-connection-underground", "FOM"), "unit"] = costs.at[("offwind", "FOM"), "unit"]
costs.loc[("offwind-dc-connection-underground", "FOM"), "unit"] = costs.at[
("offwind", "FOM"), "unit"
]
costs.loc[("offwind-ac-connection-submarine", "FOM"), "value"] = 0.35
costs.loc[("offwind-ac-connection-submarine", "FOM"), "unit"] = costs.at[("offwind", "FOM"), "unit"]
costs.loc[("offwind-ac-connection-submarine", "FOM"), "unit"] = costs.at[
("offwind", "FOM"), "unit"
]
costs.loc[("offwind-ac-connection-underground", "FOM"), "value"] = 0.35
costs.loc[("offwind-ac-connection-underground", "FOM"), "unit"] = costs.at[("offwind", "FOM"), "unit"]
costs.loc[("offwind-ac-connection-underground", "FOM"), "unit"] = costs.at[
("offwind", "FOM"), "unit"
]

costs.to_csv(snakemake.output[0])

0 comments on commit d4b6071

Please sign in to comment.