From d826018816d7e16be340d86870af18854f5e7363 Mon Sep 17 00:00:00 2001 From: Joseph Lemaitre Date: Mon, 16 Oct 2023 12:33:14 +0200 Subject: [PATCH] support for paranthesis --- flepimop/gempyor_pkg/src/gempyor/compartments.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flepimop/gempyor_pkg/src/gempyor/compartments.py b/flepimop/gempyor_pkg/src/gempyor/compartments.py index eb985edf9..67286110b 100644 --- a/flepimop/gempyor_pkg/src/gempyor/compartments.py +++ b/flepimop/gempyor_pkg/src/gempyor/compartments.py @@ -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])