Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alvalentini committed Sep 22, 2023
1 parent 4ee0afb commit fd36191
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unified_planning/engines/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion unified_planning/shortcuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fd36191

Please sign in to comment.