mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 15:06:25 +00:00
ifc5d IfcOpenShell.calculate - warn on missing formulas
This commit is contained in:
@@ -277,6 +277,8 @@ class IfcOpenShell(QtoCalculator):
|
|||||||
formula = formula.partition("_")[2]
|
formula = formula.partition("_")[2]
|
||||||
gross_or_net_qtos.setdefault(name, {})[quantity] = formula
|
gross_or_net_qtos.setdefault(name, {})[quantity] = formula
|
||||||
formula_functions[formula] = getattr(ifcopenshell.util.shape, 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]] = []
|
tasks: list[tuple[Union[ifcopenshell.geom.iterator, IteratorForTypes], QtosFormulas]] = []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user