load_nmodl_mechanisms#

load_nmodl_mechanisms(quiet: bool = True, strict: bool = False) bool[source]#

Load pre-compiled NMODL mechanisms into current NEURON session.

This function loads previously compiled mechanisms into NEURON. It should be called at the start of every script that uses NEURON.

Parameters:
  • quiet (bool, default: True) – If True, suppress output messages

  • strict (bool, default: False) – If True, raise exceptions on errors instead of returning False. Recommended for production code to catch configuration issues early.

Returns:

True if mechanisms loaded successfully, False otherwise

Return type:

bool

Raises:

NMODLLoadError – If strict=True and mechanisms fail to load