[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-07-25 12:33:37 +00:00
parent b80bb7bb7a
commit 744aaf71de

View File

@ -423,7 +423,7 @@ def add_heating_capacities_installed_before_baseyear(
time_dep_hp_cop: bool, time_dep_hp_cop: bool,
costs, costs,
default_lifetime, default_lifetime,
existing_heating: pd.DataFrame existing_heating: pd.DataFrame,
): ):
""" """
Parameters Parameters
@ -458,10 +458,10 @@ def add_heating_capacities_installed_before_baseyear(
costs_name = f"decentral {heat_pump_type}-sourced heat pump" costs_name = f"decentral {heat_pump_type}-sourced heat pump"
efficiency = ( efficiency = (
cop[f"{heat_pump_type} {name_type}"][nodes] cop[f"{heat_pump_type} {name_type}"][nodes]
if options["time_dep_hp_cop"] if options["time_dep_hp_cop"]
else costs.at[costs_name, "efficiency"] else costs.at[costs_name, "efficiency"]
) )
too_large_grouping_years = [gy for gy in grouping_years if gy >= int(baseyear)] too_large_grouping_years = [gy for gy in grouping_years if gy >= int(baseyear)]
if too_large_grouping_years: if too_large_grouping_years: