From fd361915af4dd469a68d8ae04b74c4eaf70257cc Mon Sep 17 00:00:00 2001 From: Alessandro Valentini Date: Fri, 22 Sep 2023 10:37:49 +0200 Subject: [PATCH] Small fixes --- unified_planning/engines/factory.py | 2 +- unified_planning/shortcuts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unified_planning/engines/factory.py b/unified_planning/engines/factory.py index 215991a89..dbfeca6f2 100644 --- a/unified_planning/engines/factory.py +++ b/unified_planning/engines/factory.py @@ -526,7 +526,7 @@ def _get_engine_class( x = [name] + [ str( EngineClass.supports( - ProblemKind({f}, version=LATEST_PROBLEM_KIND_VERSION) + ProblemKind({f}, version=problem_kind.get_version()) ) ) for f in problem_features diff --git a/unified_planning/shortcuts.py b/unified_planning/shortcuts.py index acfd8043e..9ff6f9b15 100644 --- a/unified_planning/shortcuts.py +++ b/unified_planning/shortcuts.py @@ -772,7 +772,7 @@ def get_all_applicable_engines( :param compilation_kind: An engine is returned only if it is able to handle this ``compilation_kind``. This parameter can be specified only if the ``operation_mode`` is ``COMPILER``. :return: The list of engines names that satisfy all the given requirements. - """ # TODO here check how to handle not latest version ProblemKind + """ return get_environment().factory.get_all_applicable_engines( problem_kind, operation_mode,