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

Alexandre Gramfort alexandre.gramfort at telecom-paristech.fr
Sat Apr 22 15:05:30 EDT 2017
Search archives:

hi,

are you sure you set the path and the name of the file correctly?
it should work if the files ends with .set.

Best,
Alex

On Sat, Apr 22, 2017 at 4:03 PM, He Qing <heqing.psy at hotmail.com> wrote:
> 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
>
>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>


More information about the Mne_analysis mailing list