From 21e46993de84d165c99458b252d83f97a6d00da1 Mon Sep 17 00:00:00 2001 From: Samuel Gobbi Date: Tue, 24 Sep 2024 13:01:35 +0200 Subject: [PATCH] fix(interpreted functions): minor changes --- .../engines/interpreted_functions_planner.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/unified_planning/engines/interpreted_functions_planner.py b/unified_planning/engines/interpreted_functions_planner.py index f37025e55..6eff7ecfc 100644 --- a/unified_planning/engines/interpreted_functions_planner.py +++ b/unified_planning/engines/interpreted_functions_planner.py @@ -191,11 +191,11 @@ def _attempt_to_solve( # print ("validation error") # print (validation_result) # print (validation_result.status) - retval = retval = PlanGenerationResult( - _refine(), + retval = _refine( + PlanGenerationResultStatus.INTERNAL_ERROR, up.plans.SequentialPlan([]), self.name, - log_messages=res.log_messages, + "pi prime is not valid for P", ) return retval @@ -215,6 +215,5 @@ def _attempt_to_solve( return PlanGenerationResult(status, None, self.name) -def _refine(): - status = PlanGenerationResultStatus.INTERNAL_ERROR - return status +def _refine(a, b, c, d): + return PlanGenerationResult(a, b, c, d)