From b529ab1d3c97ee5e30c753baa37ef83987c68e68 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 May 2024 15:14:33 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- scripts/prepare_sector_network.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 86c79026..89d5cd7d 100755 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -2905,7 +2905,9 @@ def add_industry(n, costs): if cf_industry["waste_to_energy"] or cf_industry["waste_to_energy_cc"]: - non_sequestered_hvc_locations = pd.Index(spatial.oil.demand_locations) + " non-sequestered HVC" + non_sequestered_hvc_locations = ( + pd.Index(spatial.oil.demand_locations) + " non-sequestered HVC" + ) n.madd( "Bus", @@ -2956,7 +2958,7 @@ def add_industry(n, costs): * costs.at["waste CHP", "efficiency"], marginal_cost=costs.at["waste CHP", "VOM"], efficiency=costs.at["waste CHP", "efficiency"], - efficiency2=costs.at['waste CHP', 'efficiency-heat'], + efficiency2=costs.at["waste CHP", "efficiency-heat"], efficiency3=costs.at["oil", "CO2 intensity"], lifetime=costs.at["waste CHP", "lifetime"], ) @@ -2977,8 +2979,9 @@ def add_industry(n, costs): * costs.at["waste CHP CC", "efficiency"], marginal_cost=costs.at["waste CHP CC", "VOM"], efficiency=costs.at["waste CHP CC", "efficiency"], - efficiency2=costs.at["waste CHP CC", 'efficiency-heat'], - efficiency3=costs.at["oil", "CO2 intensity"] * (1 - options["cc_fraction"]), + efficiency2=costs.at["waste CHP CC", "efficiency-heat"], + efficiency3=costs.at["oil", "CO2 intensity"] + * (1 - options["cc_fraction"]), efficiency4=costs.at["oil", "CO2 intensity"] * options["cc_fraction"], lifetime=costs.at["waste CHP CC", "lifetime"], )