myogen.simulator.IntramuscularEMG.simulate_muaps#
- IntramuscularEMG.simulate_muaps( ) INTRAMUSCULAR_EMG__Block[source]#
Simulate MUAPs for all electrode arrays using the provided muscle model.
This method generates intramuscular Motor Unit Action Potential (MUAP) templates by simulating individual motor units with realistic neuromuscular junction distributions and fiber action potential propagation.
- Parameters:
n_jobs (int, optional) – Number of parallel workers for motor unit processing. Default is -2. - n_jobs=-1: Use all CPU cores - n_jobs=-2: Use all cores except one (recommended, keeps system responsive) - n_jobs=-3: Use all cores except two - n_jobs=1: No parallelization - n_jobs=N: Use exactly N cores
verbose (bool, default=True) – If True, display progress bars. Set to False to disable.
- Returns:
Intramuscular MUAP shapes for all motor units stored in a neo.Block. Results are stored in the muaps__Block property after execution.
- Return type:
Notes
This method must be called before simulate_intramuscular_emg(). The process includes: (1) motor unit initialization, (2) neuromuscular junction simulation, and (3) MUAP calculation with spatial filtering.