diff --git a/openstef/tasks/create_forecast.py b/openstef/tasks/create_forecast.py index 91b0ae49c..882884ae4 100644 --- a/openstef/tasks/create_forecast.py +++ b/openstef/tasks/create_forecast.py @@ -97,7 +97,7 @@ def create_forecast_task(pj: PredictionJobDataClass, context: TaskContext) -> No return elif isinstance(e, InputDataOngoingZeroFlatlinerError): raise InputDataOngoingZeroFlatlinerError( - 'Consider adding this pid to the "known_zero_flatliners" app_setting.' + 'All recent load measurements are zero. Check the load profile of this pid as well as related/neighbouring prediction jobs. Afterwards, consider adding this pid to the "known_zero_flatliners" app_setting and possibly removing other pids from the same app_setting.' ) from e elif isinstance(e, LookupError): raise LookupError( diff --git a/openstef/tasks/train_model.py b/openstef/tasks/train_model.py index a1f383c08..e13d619ee 100644 --- a/openstef/tasks/train_model.py +++ b/openstef/tasks/train_model.py @@ -165,7 +165,7 @@ def train_model_task( return else: raise InputDataOngoingZeroFlatlinerError( - 'All recent load measurements are zero. Consider adding this pid to the "known_zero_flatliners" app_setting.' + 'All recent load measurements are zero. Check the load profile of this pid as well as related/neighbouring prediction jobs. Afterwards, consider adding this pid to the "known_zero_flatliners" app_setting and possibly removing other pids from the same app_setting.' ) diff --git a/test/unit/tasks/test_create_forecast.py b/test/unit/tasks/test_create_forecast.py index 8ca0197d1..eb0b59d0c 100644 --- a/test/unit/tasks/test_create_forecast.py +++ b/test/unit/tasks/test_create_forecast.py @@ -157,7 +157,7 @@ def test_create_forecast_unexpected_zero_flatliner(self): assert ( e.value.args[0] - == 'Consider adding this pid to the "known_zero_flatliners" app_setting.' + == 'All recent load measurements are zero. Check the load profile of this pid as well as related/neighbouring prediction jobs. Afterwards, consider adding this pid to the "known_zero_flatliners" app_setting and possibly removing other pids from the same app_setting.' ) @patch( diff --git a/test/unit/tasks/test_train_model.py b/test/unit/tasks/test_train_model.py index 2054c3962..12a81c67b 100644 --- a/test/unit/tasks/test_train_model.py +++ b/test/unit/tasks/test_train_model.py @@ -85,7 +85,7 @@ def test_train_model_unexpected_zero_flatliner(self): train_model_task(self.pj, context) self.assertEqual( e.value.args[0], - 'All recent load measurements are zero. Consider adding this pid to the "known_zero_flatliners" app_setting.', + 'All recent load measurements are zero. Check the load profile of this pid as well as related/neighbouring prediction jobs. Afterwards, consider adding this pid to the "known_zero_flatliners" app_setting and possibly removing other pids from the same app_setting.', ) @patch("openstef.model.serializer.MLflowSerializer.save_model")