Used mne.io.read_epochs_eeglab() load data

Hey:
I have used eeglab did preprcoess and conducted re-reference using TP9 and TP10, the data was colleceted by Brain Version product. While, when i used the mne.io.read_epochs_eeglab() to load the preprocessed data, it was failed.
The error message is :
发生异常: KeyError (note: full exception trace is shown but execution is paused at: _run_module_as_main)
‘description’
File “D:\anaconda\envs\mne\Lib\site-packages\mne\io\eeglab\eeglab.py”, line 154, in _get_montage_information
elif d[‘description’] == ‘Nasion’:
File “D:\anaconda\envs\mne\Lib\site-packages\mne\io\eeglab\eeglab.py”, line 185, in _get_info
_get_montage_information(eeg, has_pos)
File “D:\anaconda\envs\mne\Lib\site-packages\mne\io\eeglab\eeglab.py”, line 555, in init
info, eeg_montage, _ = _get_info(eeg, eog=eog)
File “”, line 12, in init
File “D:\anaconda\envs\mne\Lib\site-packages\mne\io\eeglab\eeglab.py”, line 318, in read_epochs_eeglab
epochs = EpochsEEGLAB(input_fname=input_fname, events=events, eog=eog,
File “H:\eeg-analysis\preprocess_eeg”, line 21, in
data = mne.io.read_epochs_eeglab(filename)
File “D:\anaconda\envs\mne\Lib\runpy.py”, line 86, in _run_code
exec(code, run_globals)
File “D:\anaconda\envs\mne\Lib\runpy.py”, line 196, in _run_module_as_main (Current frame)
return _run_code(code, main_globals, None,
thanks for your help
Liu

hi Liu,

yes we have broke something with eeglab files with this release.

You can use the older mne version before we push a new release.

you can follow this issue https://github.com/mne-tools/mne-python/issues/11039

Alex

1 Like

Thanks so much, Alex! There was no error when i used the mne v1.0.0.

this has been fixed in MNE 1.1.1 at mne · PyPI

Alex

1 Like