From 26c66b3930033805ae8066215ed132d12d82a63b Mon Sep 17 00:00:00 2001 From: Patrick Sauvan Date: Thu, 4 Dec 2025 10:33:59 +0100 Subject: [PATCH] Change return type from tuple to set in get_surfaces_numbers The returned type of the function must be set not tuple. Bug may produce error during the cell definition simplification, when "simplify" option is turned on. --- src/geouned/GEOUNED/utils/boolean_function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geouned/GEOUNED/utils/boolean_function.py b/src/geouned/GEOUNED/utils/boolean_function.py index a9bc2e4a..1bfde6a1 100644 --- a/src/geouned/GEOUNED/utils/boolean_function.py +++ b/src/geouned/GEOUNED/utils/boolean_function.py @@ -624,7 +624,7 @@ def group_single(self): def get_surfaces_numbers(self): """Return the list of all surfaces in the BoolSequence definition.""" if type(self.elements) is bool: - return tuple() + return set() surf = set() for e in self.elements: if type(e) is int: