sim_explorer.utils.codegen

Functions

get_callable_function(compiled, function_name)

Execute compiled code and return a named callable from the local namespace.

sim_explorer.utils.codegen.get_callable_function(compiled: CodeType, function_name: str, global_ns: dict[str, Any] | None = None, local_ns: dict[str, Any] | None = None) Callable[[...], Any]

Execute compiled code and return a named callable from the local namespace.