raw : instance of Raw
ch_name : None | str
The name of the channel to use for ECG peak detection.
If None (default), ECG channel is used if present. If None and no
ECG channel is present, a synthetic ECG channel is created from
cross channel average. Synthetic channel can only be created from
‘meg’ channels.
event_id : int
The index to assign to found events
picks : array-like of int | None (default)
Indices of channels to include. If None, all channels are used.
tmin : float
tmax : float
l_freq : float
h_freq : float
reject : dict | None
Rejection parameters based on peak-to-peak amplitude.
Valid keys are ‘grad’ | ‘mag’ | ‘eeg’ | ‘eog’ | ‘ecg’.
If reject is None then no rejection is done. Example:
reject = dict(grad=4000e-13, # T / m (gradiometers)
mag=4e-12, # T (magnetometers)
eeg=40e-6, # V (EEG channels)
eog=250e-6 # V (EOG channels)
)
flat : dict | None
Rejection parameters based on flatness of signal.
Valid keys are ‘grad’ | ‘mag’ | ‘eeg’ | ‘eog’ | ‘ecg’, and values
are floats that set the minimum acceptable peak-to-peak amplitude.
If flat is None then no rejection is done.
baseline : tuple | list of length 2 | None
The time interval to apply rescaling / baseline correction.
If None do not apply it. If baseline is (a, b)
the interval is between “a (s)” and “b (s)”.
If a is None the beginning of the data is used
and if b is None then b is set to the end of the interval.
If baseline is equal to (None, None) all the time
interval is used. If None, no correction is applied.
preload : bool
keep_ecg : bool
When ECG is synthetically created (after picking), should it be added
to the epochs? Must be False when synthetic channel is not used.
Defaults to False.
reject_by_annotation : bool
Whether to reject based on annotations. If True (default), epochs
overlapping with segments whose description begins with 'bad' are
rejected. If False, no rejection based on annotations is performed.
verbose : bool, str, int, or None
|