From b4f486e9aa6f87958136bcdfcfd5e71e8031c65c Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Thu, 23 Mar 2023 16:52:30 +1100 Subject: [PATCH] Minor fix --- src/ifcopenshell-python/ifcopenshell/util/fm.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/fm.py b/src/ifcopenshell-python/ifcopenshell/util/fm.py index d1b2e43329..6be76879ec 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/fm.py +++ b/src/ifcopenshell-python/ifcopenshell/util/fm.py @@ -141,10 +141,7 @@ def get_fmhem_types(ifc_file): fmhem_classes = fmhem_classes_ifc4 for ifc_class in fmhem_classes: try: - if ifc_class in ("IfcEnergyConversionDeviceType", "IfcFlowTerminalType"): - elements += [e for e in ifc_file.by_type(ifc_class) if not e.is_a() not in fmhem_excluded_classes] - else: - elements += ifc_file.by_type(ifc_class) + elements += [e for e in ifc_file.by_type(ifc_class) if not e.is_a() not in fmhem_excluded_classes] except: pass return elements