From 1fecd77121b13e823f6f7b35df0121efdb461933 Mon Sep 17 00:00:00 2001 From: Andrej Date: Tue, 10 Jun 2025 12:58:30 +0500 Subject: [PATCH] Fix a typo --- src/ifcopenshell-python/ifcopenshell/util/element.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/element.py b/src/ifcopenshell-python/ifcopenshell/util/element.py index 0c8bf9c47a..0299eecb69 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/element.py +++ b/src/ifcopenshell-python/ifcopenshell/util/element.py @@ -1605,7 +1605,7 @@ def remove_deep2( and ( # 0 or 1 inverses guarantees that the subelement only exists in this subgraph ifc_file.get_total_inverses(subelement) < 2 - # Alternatively, let's ensure all inverses are within the subgrpah + # Alternatively, let's ensure all inverses are within the subgraph or len(set(ifc_file.get_inverse(subelement)) - subgraph_set) == 0 ) ):