From 5b2efe313ff551e06d876b9f9e942df6b18e88d1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Nov 2023 01:37:36 +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 | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 595bfa27..83f007d2 100644 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -3338,7 +3338,10 @@ def add_enhanced_geothermal( # The orc cost are attributed to a separate link representing the ORC. egs_potentials["capital_cost"] = ( (egs_annuity + FOM / (1.0 + FOM)) - * (egs_potentials["CAPEX"] * 1000. - costs.at["organic rankine cycle", "investment"]) + * ( + egs_potentials["CAPEX"] * 1000.0 + - costs.at["organic rankine cycle", "investment"] + ) * Nyears ) assert ( @@ -3421,10 +3424,7 @@ def add_enhanced_geothermal( well_name = f"{bus} enhanced geothermal" + appendix bus_eta = pd.concat( - ( - efficiency[bus].rename(idx) - for idx in well_name - ), + (efficiency[bus].rename(idx) for idx in well_name), axis=1, ) @@ -3470,7 +3470,9 @@ def add_enhanced_geothermal( p_nom_extendable=True, ) elif as_chp and not bus + " urban central heat" in n.buses.index: - n.links.at[bus + " geothermal organic rankine cycle", "efficiency"] = efficiency_orc + n.links.at[ + bus + " geothermal organic rankine cycle", "efficiency" + ] = efficiency_orc if snakemake.params.sector["enhanced_geothermal_flexible"]: # this StorageUnit represents flexible operation using the geothermal reservoir. @@ -3485,7 +3487,7 @@ def add_enhanced_geothermal( max_hours = max_hours * boost n.add( "StorageUnit", - bus + ' geothermal reservoir', + bus + " geothermal reservoir", bus=f"{bus} geothermal heat surface", carrier="geothermal heat", p_nom_extendable=True,