setup_myogen#

myogen.utils.setup_myogen(verbose=True, force_nmodl_reload=False)[source]#

Set up MyoGen with automatic configuration.

This function handles all necessary setup including NMODL compilation and loading. Users should call this once at the start of their script for best results.

Parameters:
  • verbose (bool) – If True, print setup progress messages

  • force_nmodl_reload (bool) – If True, force recompilation of NMODL files

Returns:

True if setup was successful, False otherwise

Return type:

bool

Example

>>> from myogen.utils import setup_myogen
>>> setup_myogen()
>>> from myogen import simulator  # Now safe to import