mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 23:11:00 +00:00
Minor fix
This commit is contained in:
@@ -261,6 +261,8 @@ class Blender:
|
|||||||
for name, quantities in qtos.items():
|
for name, quantities in qtos.items():
|
||||||
results[element].setdefault(name, {})
|
results[element].setdefault(name, {})
|
||||||
for quantity, formula in quantities.items():
|
for quantity, formula in quantities.items():
|
||||||
|
if not formula:
|
||||||
|
continue
|
||||||
if not (formula_function := formula_functions.get(formula)):
|
if not (formula_function := formula_functions.get(formula)):
|
||||||
formula_function = formula_functions[formula] = getattr(calculator, formula)
|
formula_function = formula_functions[formula] = getattr(calculator, formula)
|
||||||
results[element][name][quantity] = unit_converter.convert(
|
results[element][name][quantity] = unit_converter.convert(
|
||||||
|
|||||||
Reference in New Issue
Block a user