From f35fc535c2f59356f0375544b8f77974dd766987 Mon Sep 17 00:00:00 2001 From: spyrostz Date: Thu, 20 Oct 2022 10:00:56 +0200 Subject: [PATCH] Fixed external load hours forecast strategy, the current implementation was failing due to the fact that the energy tracking of the load hours energy parameters was still partially active and was trying to decrease the operating hours of the strategy without being activated. --- src/gsy_e/models/strategy/energy_parameters/load.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gsy_e/models/strategy/energy_parameters/load.py b/src/gsy_e/models/strategy/energy_parameters/load.py index 647067c954..8186d87ecf 100644 --- a/src/gsy_e/models/strategy/energy_parameters/load.py +++ b/src/gsy_e/models/strategy/energy_parameters/load.py @@ -233,6 +233,9 @@ def read_or_rotate_profiles(self, reconfigure=False) -> None: def event_activate_energy(self, area): """Overridden with empty implementation to disable profile activation.""" + def decrease_hours_per_day(self, time_slot, energy_Wh): + """Overridden with empty implementation to disable template strategy energy tracking.""" + class LoadProfileForecastEnergyParams( LoadForecastExternalEnergyParamsMixin, DefinedLoadEnergyParameters):