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 Jul 12, 2024
1 parent 4b0d9e7 commit b819f11
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -3352,10 +3352,7 @@ def add_waste_heat(n):
0.95 - n.links.loc[urban_central + " Fischer-Tropsch", "efficiency"]
) * options["use_fischer_tropsch_waste_heat"]

if (
options["use_methanation_waste_heat"]
and "Sabatier" in link_carriers
):
if options["use_methanation_waste_heat"] and "Sabatier" in link_carriers:
n.links.loc[urban_central + " Sabatier", "bus3"] = (
urban_central + " urban central heat"
)
Expand All @@ -3364,10 +3361,7 @@ def add_waste_heat(n):
) * options["use_methanation_waste_heat"]

# DEA quotes 15% of total input (11% of which are high-value heat)
if (
options["use_haber_bosch_waste_heat"]
and "Haber-Bosch" in link_carriers
):
if options["use_haber_bosch_waste_heat"] and "Haber-Bosch" in link_carriers:
n.links.loc[urban_central + " Haber-Bosch", "bus3"] = (
urban_central + " urban central heat"
)
Expand Down Expand Up @@ -3407,10 +3401,7 @@ def add_waste_heat(n):
0.84 - n.links.loc[urban_central + " H2 Electrolysis", "efficiency"]
) * options["use_electrolysis_waste_heat"]

if (
options["use_fuel_cell_waste_heat"]
and "H2 Fuel Cell" in link_carriers
):
if options["use_fuel_cell_waste_heat"] and "H2 Fuel Cell" in link_carriers:
n.links.loc[urban_central + " H2 Fuel Cell", "bus2"] = (
urban_central + " urban central heat"
)
Expand Down

0 comments on commit b819f11

Please sign in to comment.