Skip to content

Commit

Permalink
fix(interpreted functions): typo in kind names
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Gobbi committed Sep 17, 2024
1 parent 66103f3 commit 3afd208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unified_planning/model/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ def update_problem_kind_effect(
elif value.type.is_bool_type():
if OperatorKind.INTERPRETED_FUNCTION_EXP in ops:
self.kind.set_effects_kind(

Check warning on line 862 in unified_planning/model/problem.py

View check run for this annotation

Codecov / codecov/patch

unified_planning/model/problem.py#L862

Added line #L862 was not covered by tests
"INTERPRETED_FUNCTIONS_IN_NUMERIC_ASSIGNMENTS"
"INTERPRETED_FUNCTIONS_IN_BOOLEAN_ASSIGNMENTS"
)
if any(f in self.static_fluents for f in fluents_in_value):
self.kind.set_effects_kind("STATIC_FLUENTS_IN_BOOLEAN_ASSIGNMENTS")
Expand All @@ -869,7 +869,7 @@ def update_problem_kind_effect(
elif value.type.is_user_type():
if OperatorKind.INTERPRETED_FUNCTION_EXP in ops:
self.kind.set_effects_kind(

Check warning on line 871 in unified_planning/model/problem.py

View check run for this annotation

Codecov / codecov/patch

unified_planning/model/problem.py#L871

Added line #L871 was not covered by tests
"INTERPRETED_FUNCTIONS_IN_NUMERIC_ASSIGNMENTS"
"INTERPRETED_FUNCTIONS_IN_OBJECT_ASSIGNMENTS"
)
if any(f in self.static_fluents for f in fluents_in_value):
self.kind.set_effects_kind("STATIC_FLUENTS_IN_OBJECT_ASSIGNMENTS")
Expand Down

0 comments on commit 3afd208

Please sign in to comment.