Skip to content

Commit

Permalink
support for paranthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
jcblemai committed Oct 16, 2023
1 parent 41b8d14 commit d826018
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flepimop/gempyor_pkg/src/gempyor/compartments.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,9 @@ def get_transition_array(self):
if not candidate in unique_strings:
unique_strings.append(candidate)

assert reduce(lambda a, b: a and b, [(x.find("(") == -1) for x in unique_strings])
assert reduce(lambda a, b: a and b, [(x.find(")") == -1) for x in unique_strings])
# parenthesis are now supported
#assert reduce(lambda a, b: a and b, [(x.find("(") == -1) for x in unique_strings])
#assert reduce(lambda a, b: a and b, [(x.find(")") == -1) for x in unique_strings])
assert reduce(lambda a, b: a and b, [(x.find("%") == -1) for x in unique_strings])
assert reduce(lambda a, b: a and b, [(x.find(" ") == -1) for x in unique_strings])

Expand Down

0 comments on commit d826018

Please sign in to comment.