Skip to content

Commit

Permalink
add case for negboolview
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnaceBleukx committed Jul 25, 2023
1 parent b5e5108 commit a530b66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpmpy/expressions/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,11 @@ def clear(self):
"""
self._bv.clear()

def __str__(self):
if hasattr(self._bv, "desc"):
return f"not({self._bv.desc})"
return self.__repr__()

def __repr__(self):
return "~{}".format(self._bv.name)

Expand Down

0 comments on commit a530b66

Please sign in to comment.