From 744aaf71decd17eb9f5c985103966c0c6afd247f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 25 Jul 2024 12:33:37 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- scripts/add_existing_baseyear.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/add_existing_baseyear.py b/scripts/add_existing_baseyear.py index 3d4debea..cc82295d 100644 --- a/scripts/add_existing_baseyear.py +++ b/scripts/add_existing_baseyear.py @@ -423,7 +423,7 @@ def add_heating_capacities_installed_before_baseyear( time_dep_hp_cop: bool, costs, default_lifetime, - existing_heating: pd.DataFrame + existing_heating: pd.DataFrame, ): """ Parameters @@ -458,10 +458,10 @@ def add_heating_capacities_installed_before_baseyear( costs_name = f"decentral {heat_pump_type}-sourced heat pump" efficiency = ( - cop[f"{heat_pump_type} {name_type}"][nodes] - if options["time_dep_hp_cop"] - else costs.at[costs_name, "efficiency"] - ) + cop[f"{heat_pump_type} {name_type}"][nodes] + if options["time_dep_hp_cop"] + else costs.at[costs_name, "efficiency"] + ) too_large_grouping_years = [gy for gy in grouping_years if gy >= int(baseyear)] if too_large_grouping_years: