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 2, 2024
1 parent 71b27b5 commit fb5b107
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -2977,7 +2977,10 @@ def add_waste_heat(n):
link_carriers = n.links.carrier.unique()

# TODO what is the 0.95 and should it be a config option?
if options["use_fischer_tropsch_waste_heat"] and "Fischer-Tropsch" in link_carriers:
if (
options["use_fischer_tropsch_waste_heat"]
and "Fischer-Tropsch" in link_carriers
):
n.links.loc[urban_central + " Fischer-Tropsch", "bus3"] = (
urban_central + " urban central heat"
)
Expand Down Expand Up @@ -3010,7 +3013,10 @@ def add_waste_heat(n):
0.15 * total_energy_input / electricity_input
)

if options["use_methanolisation_waste_heat"] and "methanolisation" in link_carriers:
if (
options["use_methanolisation_waste_heat"]
and "methanolisation" in link_carriers
):
n.links.loc[urban_central + " methanolisation", "bus4"] = (
urban_central + " urban central heat"
)
Expand All @@ -3020,7 +3026,10 @@ def add_waste_heat(n):
)

# TODO integrate usable waste heat efficiency into technology-data from DEA
if options.get("use_electrolysis_waste_heat", False) and "H2 Electrolysis" in link_carriers:
if (
options.get("use_electrolysis_waste_heat", False)
and "H2 Electrolysis" in link_carriers
):
n.links.loc[urban_central + " H2 Electrolysis", "bus2"] = (
urban_central + " urban central heat"
)
Expand Down

0 comments on commit fb5b107

Please sign in to comment.