CompiledModule#

class brainevent.CompiledModule(so_path, function_names)[source]#

A compiled module loaded from a shared library.

Each function listed at compilation time has a corresponding extern "C" symbol be_<name> in the .so. These are loaded via ctypes and wrapped for use with the JAX FFI system.

Parameters:
  • so_path (str) – Path to the compiled .so shared library.

  • function_names (list[str]) – User function names whose FFI handler symbols to resolve.

property function_names: list[str]#

Names of available functions.

get_handler(name)[source]#

Return the ctypes function pointer for an FFI handler.

Parameters:

name (str) – User function name (without the be_ prefix).

property path: str#

Path to the loaded .so.