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
Pipeline steps using this setting
The following steps are directly affected by changes to
fix_stim_artifact:
preprocessing/_01_data_qualitypreprocessing/_02_head_pospreprocessing/_03_maxfilterpreprocessing/_04_frequency_filter
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
Pipeline steps using this setting
The following steps are directly affected by changes to
stim_artifact_tmin:
preprocessing/_01_data_qualitypreprocessing/_02_head_pospreprocessing/_03_maxfilterpreprocessing/_04_frequency_filter
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
Pipeline steps using this setting
The following steps are directly affected by changes to
stim_artifact_tmax:
preprocessing/_01_data_qualitypreprocessing/_02_head_pospreprocessing/_03_maxfilterpreprocessing/_04_frequency_filter