Import and return the underlying function from ifcopenshell.api.
(module: str, function: str)
| 116 | |
| 117 | |
| 118 | def _import_function(module: str, function: str): |
| 119 | """Import and return the underlying function from ifcopenshell.api.""" |
| 120 | fn_module = importlib.import_module(f"ifcopenshell.api.{module}.{function}") |
| 121 | fn = getattr(fn_module, function) |
| 122 | return fn |
| 123 | |
| 124 | |
| 125 | def serialize_result(value) -> object: |