Skip to content

Commit

Permalink
be more liberal on Some/max_size argument type
Browse files Browse the repository at this point in the history
  • Loading branch information
pauleve committed Dec 30, 2024
1 parent c20f6c4 commit 155b625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bonesis/asp_encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def encode_some_freeze(self, name, opts):
assert isinstance(ex, str), "invalid exclude specification"
ex = clingo_encode(ex)
rules.append(f":- some_freeze({name},{ex},_)")
if max_size > 1:
if max_size != 1:
rules += [
f":- some_freeze({name},N,V), some_freeze({name},N,-V)"
]
Expand Down

0 comments on commit 155b625

Please sign in to comment.