[Mne_analysis] Unable to read curry file using read_raw_curry

Alexandre Gramfort alexandre.gramfort at inria.fr
Sat Feb 8 07:53:51 EST 2020
Search archives:

        External Email - Use Caution        

hi,

please open an issue on github and share with us a file so we can replicate
and investigate

https://github.com/mne-tools/mne-python/issues

Alex

On Sat, Feb 8, 2020 at 12:25 PM Abhijith Mundanad Narayanan
<mabhijithn at fastmail.com> wrote:
>
>         External Email - Use Caution
>
> Hi,
>
> I am facing the following error while trying to read a curry file. The filename argument of read_raw_curry is passed without any extension. The directory of files contains .ceo, .dap, .dat and .rs3  files with the same name. I have been using MATLAB to read the files till now. I am new to MNE-python, therefore please consider this a novice level question.
>
> The error is shown below.
>
> Regards
>
> Abhi
>
>
> data_path = '/media/abhijith/CE87-7A9F/EEG-256-AAD-Raw/S23/'
> file_name = 'S23_AAD_1L'
> fullfile = data_path+file_name
> S23_1L_raw = mne.io.read_raw_curry(fullfile)
>
> ---------------------------------------------------------------------------
> ValueError                                Traceback (most recent call last)
> ~/Documents/python/example_scripts/test_aad.py in
>       2 file_name = 'S23_AAD_1L'
>       3 fullfile = data_path+file_name
> ----> 4 S23_1L_raw = mne.io.read_raw_curry(fullfile)
>
>  in read_raw_curry(fname, preload, verbose)
>
> ~/anaconda3/envs/eegsp/lib/python3.7/site-packages/mne/utils/_logging.py in wrapper(*args, **kwargs)
>      88             with use_log_level(verbose_level):
>      89                 return function(*args, **kwargs)
> ---> 90         return function(*args, **kwargs)
>      91     return FunctionMaker.create(
>      92         function, 'return decfunc(%(signature)s)',
>
> ~/anaconda3/envs/eegsp/lib/python3.7/site-packages/mne/io/curry/curry.py in read_raw_curry(fname, preload, verbose)
>     272
>     273     """
> --> 274     return RawCurry(fname, preload, verbose)
>     275
>     276
>
>  in __init__(self, fname, preload, verbose)
>
> ~/anaconda3/envs/eegsp/lib/python3.7/site-packages/mne/utils/_logging.py in wrapper(*args, **kwargs)
>      88             with use_log_level(verbose_level):
>      89                 return function(*args, **kwargs)
> ---> 90         return function(*args, **kwargs)
>      91     return FunctionMaker.create(
>      92         function, 'return decfunc(%(signature)s)',
>
> ~/anaconda3/envs/eegsp/lib/python3.7/site-packages/mne/io/curry/curry.py in __init__(self, fname, preload, verbose)
>     297         curry_paths = _get_curry_file_structure(fname, required=["info",
>     298                                                                  "data",
> --> 299                                                                  "labels"])
>     300
>     301         data_fname = op.abspath(curry_paths.data)
>
> ~/anaconda3/envs/eegsp/lib/python3.7/site-packages/mne/io/curry/curry.py in _get_curry_file_structure(fname, required)
>      49
>      50     # we don't use os.path.splitext to also handle extensions like .cdt.dpa
> ---> 51     fname_base, ext = fname.split(".", maxsplit=1)
>      52     version = _get_curry_version(ext)
>      53
>
> ValueError: not enough values to unpack (expected 2, got 1)
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis



More information about the Mne_analysis mailing list