From e8eb5e4d0a1ec09db0ebe770fffe1963624704f1 Mon Sep 17 00:00:00 2001 From: kaplus Date: Tue, 11 Nov 2025 14:51:39 +0800 Subject: [PATCH] Add continue statement to skip duplicate calculations Skip general path to avoid duplicate calculations. --- src/ifc5d/ifc5d/qto.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ifc5d/ifc5d/qto.py b/src/ifc5d/ifc5d/qto.py index deb14f0a22..ceaa6e6204 100644 --- a/src/ifc5d/ifc5d/qto.py +++ b/src/ifc5d/ifc5d/qto.py @@ -106,6 +106,7 @@ def quantify(ifc_file: ifcopenshell.file, elements: set[ifcopenshell.entity_inst for sty in entity_supertypes(ifc_file.schema_identifier, ty): if qtos := queries.get(casenorm.get(sty)): calculator.calculate(ifc_file, group_elements, qtos, results) + continue # Skip general path to avoid duplicate calculations # Fallback: per-query evaluation for query, qtos in queries.items():