MOD File Loader

class dendrotweaks.biophys.io.loader.MODFileLoader[source]

Bases: object

load_mechanism(path_to_mod_file: str, recompile: bool = False) None[source]

Load a mechanism from the specified mod file. Uses the NEURON neuron.load_mechanisms method to make the mechanism available in the hoc interpreter. Creates a temporary directory for the mechanism files to be able to dynamically load mechanisms.

Parameters:
  • path_to_mod_file (str) – Path to the .mod file.

  • recompile (bool) – Force recompilation even if already compiled.