From b29b9e6c5d91cb631fdfee8c7d2220d03278bb82 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 20:25:40 +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 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 0e4367d1..fb290130 100755 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -2708,9 +2708,8 @@ def add_industry(n, costs): ) p_set_methanol = ( - industrial_demand["methanol"] - .rename(lambda x: x + " industry methanol") - / nhours + industrial_demand["methanol"].rename(lambda x: x + " industry methanol") + / nhours ) if not options["regional_methanol_demand"]: @@ -2732,10 +2731,7 @@ def add_industry(n, costs): bus2="co2 atmosphere", carrier="industry methanol", p_nom_extendable=True, - efficiency2=1 - / options[ - "MWh_MeOH_per_tCO2" - ], + efficiency2=1 / options["MWh_MeOH_per_tCO2"], # CO2 intensity methanol based on stoichiometric calculation with 22.7 GJ/t methanol (32 g/mol), CO2 (44 g/mol), 277.78 MWh/TJ = 0.218 t/MWh )