From 8bfdabab805c0fd96b59830e5fec71c2e32501d4 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 7 Apr 2025 12:45:00 +0500 Subject: [PATCH] ifc5d IfcOpenShell.calculate - warn on missing formulas --- src/ifc5d/ifc5d/qto.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ifc5d/ifc5d/qto.py b/src/ifc5d/ifc5d/qto.py index 0938563c82..438a5506b7 100644 --- a/src/ifc5d/ifc5d/qto.py +++ b/src/ifc5d/ifc5d/qto.py @@ -277,6 +277,8 @@ class IfcOpenShell(QtoCalculator): formula = formula.partition("_")[2] gross_or_net_qtos.setdefault(name, {})[quantity] = formula formula_functions[formula] = getattr(ifcopenshell.util.shape, formula) + else: + print(f"WARNING. Unexpected formula: '{formula}' ({name}.{quantity}).") tasks: list[tuple[Union[ifcopenshell.geom.iterator, IteratorForTypes], QtosFormulas]] = []