Skip to content

Commit

Permalink
need to check lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout4 committed May 17, 2024
1 parent b6db392 commit 09e60ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/run_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from cpmpy.exceptions import TransformationNotImplementedError

# give this a meaningful name, so we know what branch was tested after the results are safed.
branch = 'has_nested'
branch = 'has_nested_simple'
# set solver to test (suported: ortools)
solver = 'ortools'
# solver timeout in seconds
Expand Down
2 changes: 2 additions & 0 deletions cpmpy/expressions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ def argval(a):
def is_leaf(a):
if hasattr(a, 'is_leaf'):
return a.is_leaf()
if is_any_list(a):
return all([is_leaf(x) for x in a])
else:
return True

Expand Down

0 comments on commit 09e60ef

Please sign in to comment.