You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
read_raw_eeglab fails to take eog param into account when setting montage #10505
When reading a raw EEGLAB format data file that contains:
EOG channels
channel locations
and when setting the eog parameter of the read_raw_eeglab function,
then a warning is raised:
RuntimeWarning: Not setting positions of 2 eog channels found in montage:
['VEOG', 'HEOG']
Consider setting the channel types to be of EEG/sEEG/ECoG/DBS/fNIRS using inst.set_channel_types before calling inst.set_montage, or omit these channels when creating your montage.
raw = mne.io.read_raw_eeglab(fname_set, eog=["VEOG", "HEOG"])
# %%importmnefpath="~/Downloads/EMP01.set"# this raises the warningraw=mne.io.read_raw_eeglab(fpath, eog=["VEOG", "HEOG"])
# NOTE: this passes fine (but VEOG and HEOG have the eeg ch_type instead of the correct eog ch_type)raw=mne.io.read_raw_eeglab(fpath)
Expected results
No warning should be raised, because the function already has the information about eog channels.
Actual results
RuntimeWarning: Not setting positions of 2 eog channels found in montage:
['VEOG', 'HEOG']
Consider setting the channel types to be of EEG/sEEG/ECoG/DBS/fNIRS using inst.set_channel_types before calling inst.set_montage, or omit these channels when creating your montage.
raw = mne.io.read_raw_eeglab(fname_set, eog=["VEOG", "HEOG"])
Activity
FIX: Do not include non-EEG channels in EEGLAB montage
TST: Add regression test for EEGLAB EOG montage handling
DOC: Add changelog fragment for EEGLAB EOG montage fix
FIX: Do not include non-EEG channels in EEGLAB montage
TST: Add regression test for EEGLAB EOG montage handling
DOC: Add changelog fragment for EEGLAB EOG montage fix
DOC: Add changelog fragment for EEGLAB EOG montage fix
FIX: Do not include non-EEG channels in EEGLAB montage
TST: Add regression test for EEGLAB EOG montage handling
DOC: Add changelog fragment for EEGLAB EOG montage fix