mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +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]
|
||||
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]] = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user