From 5fa0aa03e4dc7834454f766ee2b307171af6621c Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 24 Feb 2025 14:52:54 +0500 Subject: [PATCH] util.schema.is_a - use c++ implementation --- src/ifcopenshell-python/ifcopenshell/util/schema.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/schema.py b/src/ifcopenshell-python/ifcopenshell/util/schema.py index f709af6b5a..70eff36eb9 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/schema.py +++ b/src/ifcopenshell-python/ifcopenshell/util/schema.py @@ -80,12 +80,7 @@ def is_a(declaration: ifcopenshell.ifcopenshell_wrapper.entity, ifc_class: str) declaration = ifcopenshell.util.schema.get_declaration(wall) ifcopenshell.util.schema.is_a(declaration, "IfcRoot") # True """ - ifc_class = ifc_class.upper() - if declaration.name_uc() == ifc_class: - return True - if declaration.supertype(): - return is_a(declaration.supertype(), ifc_class) - return False + return declaration._is(ifc_class) def get_supertypes(