Skip to content

Commit

Permalink
feature(interpreted functions): added check for IF as condition - wor…
Browse files Browse the repository at this point in the history
…k in progress
  • Loading branch information
Samuel Gobbi committed Sep 13, 2024
1 parent f1cf4bf commit f5063de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unified_planning/model/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,9 +896,9 @@ def update_problem_kind_expression(
self.kind.set_conditions_kind("EXISTENTIAL_CONDITIONS")
if OperatorKind.FORALL in ops:
self.kind.set_conditions_kind("UNIVERSAL_CONDITIONS")
# if OperatorKind.INTERPRETED_FUNCTION_EXP in ops:
# self.kind.set_conditions_kind("INTERPRETED_FUNCTIONS_IN_CONDITIONS")
##can an straight up be a condition as it can return bool or should this be done differently
if OperatorKind.INTERPRETED_FUNCTION_EXP in ops:
self.kind.set_conditions_kind("INTERPRETED_FUNCTIONS_IN_CONDITIONS")

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

View check run for this annotation

Codecov / codecov/patch

unified_planning/model/problem.py#L900

Added line #L900 was not covered by tests
##can an IF straight up be a condition as it can return bool or should this be done differently
##change walker that extracts operators?
is_linear, _, _ = self.linear_checker.get_fluents(exp)
if not is_linear:
Expand Down

0 comments on commit f5063de

Please sign in to comment.