Skip to content

Stimulation artifact

When using electric stimulation systems, e.g. for median nerve or index stimulation, it is frequent to have a stimulation artifact. This option allows to fix it by linear interpolation early in the pipeline on the raw data.

fix_stim_artifact module-attribute

Python
fix_stim_artifact: bool = False

Apply interpolation to fix stimulation artifact.

Example
Python
fix_stim_artifact = False

stim_artifact_tmin module-attribute

Python
stim_artifact_tmin: float = 0.0

Start time of the interpolation window in seconds.

Example
Python
stim_artifact_tmin = 0.  # on stim onset

stim_artifact_tmax module-attribute

Python
stim_artifact_tmax: float = 0.01

End time of the interpolation window in seconds.

Example
Python
stim_artifact_tmax = 0.01  # up to 10ms post-stimulation