Eliminate stimulation’s artifacts from instance.
Note
This function operates in-place, consider passing
inst.copy() if this is not desired.
Raw or Epochs or EvokedThe data.
array, shape (n_events, 3)The list of events. Required only when inst is Raw.
intThe id of the events generating the stimulation artifacts. If None, read all events. Required only when inst is Raw.
floatStart time of the interpolation window in seconds.
floatEnd time of the interpolation window in seconds.
Way to fill the artifacted time interval. ‘linear’ does linear interpolation ‘window’ applies a (1 - hanning) window.
str | NoneStim channel to use.
str | list | slice | NoneChannels to include. Slices and lists of integers will be interpreted as
channel indices. In lists, channel type strings (e.g., ['meg',
'eeg']) will pick channels of those types, channel name strings (e.g.,
['MEG0111', 'MEG2623'] will pick the given channels. Can also be the
string values “all” to pick all channels, or “data” to pick data
channels. None (default) will pick all data channels. Note that channels
in info['bads'] will be included if their names or indices are
explicitly provided.
mne.preprocessing.fix_stim_artifact#