Add continue statement to skip duplicate calculations

Skip general path to avoid duplicate calculations.
This commit is contained in:
kaplus
2025-11-11 14:51:39 +08:00
committed by Thomas Krijnen
parent 080222ffe6
commit e8eb5e4d0a
+1
View File
@@ -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():