MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / _import_function

Function _import_function

src/ifcedit/ifcedit/run.py:118–122  ·  view source on GitHub ↗

Import and return the underlying function from ifcopenshell.api.

(module: str, function: str)

Source from the content-addressed store, hash-verified

116
117
118def _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
125def serialize_result(value) -> object:

Callers 1

run_apiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected