ArtifactReject¶
Bases: BaseClass
Class for rejecting or correcting bad channels in EEG epochs.
Identifies bad channels per epoch and either interpolates them using MNE's built-in functionality, or replaces them with NaNs.
MNE-functions used: mne.pick_types, mne.Epochs.interpolate_bads
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
raw
|
Epochs
|
Input data. |
required |
mode
|
(interpolation, nan_replacement)
|
Method for dealing with bad channels. |
'interpolation'
|
max_gradient_uv
|
int
|
Maximal allowed voltage step in µV/ms. |
50
|
max_amplitude_uv
|
int
|
Maximal allowed amplitude in µV. |
75
|
min_activity_uv
|
int
|
Lowest allowed activity in intervals in µV. |
0.5
|
interval_ms
|
Interval length in milliseconds for checking activity. |
100
|
|
**kwargs
|
Additional keyword arguments passed to the underlying
|
{}
|
Attributes:
| Name | Type | Description |
|---|---|---|
processed |
Epochs
|
Output data. |
Example settings for config file¶
Example settings in correct format for the config file.