compile_mechanisms

mechanisms.l5pt.compile_mechanisms(force_recompile=False)

Compile the mechanisms for L5PTs.

This function checks if the mechanisms are compiled at the specified paths, and (re)compiles them if necessary using nrnivmodl.

See also

check_nrnivmodl_is_available() to check if nrnivmodl is available in the PATH, and _compile_mechanisms_at_path() to compile the mechanisms in a given directory.

Parameters:
force_recompile : bool

If True, forces recompilation of the mechanisms even if they are already compiled. Defaults to False.

Raises:

UserWarning – If the mechanisms needed to be compiled, but failed.