From a96bffa34125d2fe8a1fe5bfccee55692f0a7399 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 6 Jun 2022 10:31:33 +0200 Subject: [PATCH] Update schema.py --- src/ifcopenshell-python/ifcopenshell/util/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/schema.py b/src/ifcopenshell-python/ifcopenshell/util/schema.py index c6199c9889..3ec12889f9 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/schema.py +++ b/src/ifcopenshell-python/ifcopenshell/util/schema.py @@ -28,8 +28,8 @@ cwd = os.path.dirname(os.path.realpath(__file__)) def is_a(entity, ifc_class): - ifc_class = ifc_class.lower() - if entity.name_lc() == ifc_class: + ifc_class = ifc_class.upper() + if entity.name_uc() == ifc_class: return True if entity.supertype(): return is_a(entity.supertype(), ifc_class)