Skip to content

Commit

Permalink
Append sequence on BoolSequence with boolean value
Browse files Browse the repository at this point in the history
  • Loading branch information
psauvan committed Jun 25, 2024
1 parent f7f4279 commit 52c029d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/geouned/GEOUNED/utils/boolean_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ def append(self, *seq):
- A BoolSequence object
- An integer value
- A Boolean value"""

if type(self.elements) is bool:
if (self.elements and self.operator == "AND") or (not self.elements and self.operator == "OR"):
self.assign(seq)
return

for s in seq:
if type(s) is int:
level = -1
Expand Down

0 comments on commit 52c029d

Please sign in to comment.