ifc5d IfcOpenShell.calculate - warn on missing formulas

This commit is contained in:
Andrej730
2025-04-07 12:45:00 +05:00
parent 50c1220730
commit 8bfdabab80
+2
View File
@@ -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]] = []