[Mne_analysis] how to load EEGLAB .set data file with MNE

He Qing heqing.psy at hotmail.com
Sat Apr 22 10:03:46 EDT 2017
Search archives:

Dear all
When I use the mne.io.read_raw_eeglab function to read EEGLAB .set file, they console shows me an error

  File "C:\ProgramData\Anaconda2\lib\site-packages\mne\io\eeglab\eeglab.py", line 194, in read_raw_eeglab
    verbose=verbose, uint16_codec=uint16_codec)

  File "<string>", line 2, in __init__

  File "C:\ProgramData\Anaconda2\lib\site-packages\mne\utils.py", line 707, in verbose
    return function(*args, **kwargs)

  File "C:\ProgramData\Anaconda2\lib\site-packages\mne\io\eeglab\eeglab.py", line 331, in __init__
    _check_mat_struct(input_fname)

  File "C:\ProgramData\Anaconda2\lib\site-packages\mne\io\eeglab\eeglab.py", line 43, in _check_mat_struct
    squeeze_me=True)

  File "C:\ProgramData\Anaconda2\lib\site-packages\scipy\io\matlab\mio.py", line 248, in whosmat
    ML = mat_reader_factory(file_name, **kwargs)

  File "C:\ProgramData\Anaconda2\lib\site-packages\scipy\io\matlab\mio.py", line 58, in mat_reader_factory
    byte_stream = _open_file(file_name, appendmat)

  File "C:\ProgramData\Anaconda2\lib\site-packages\scipy\io\matlab\mio.py", line 28, in _open_file
    return open(file_like, 'rb')

IOError: [Errno 22] invalid mode ('rb') or filename

So how to solve it?
Should the filename be filename.mat, but not filename.set?

I will be grateful if you can send me this information

He, Qing


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170422/c1c4d9e4/attachment.html 


More information about the Mne_analysis mailing list