[Mne_analysis] Issue with example in mne.datasets.eegbci.data_path()

Ramiro Gatti rgatti at ingenieria.uner.edu.ar
Fri Mar 6 10:52:56 EST 2020
Search archives:

        External Email - Use Caution        

Yes, that way
<https://mne.tools/dev/generated/mne.datasets.eegbci.load_data.html#mne.datasets.eegbci.load_data>
it works. But theoretically the other script should also work based on
the description
of the function
<https://github.com/mne-tools/mne-python/blob/22dfbb5c55f09b88f595dd5c6d83dac71335df97/mne/datasets/eegbci/eegbci.py#L46>.
I do not understand what is wrong.

Ramiro Gatti
PhD Fellow
IBB-CONICET
<https://www.conicet.gov.ar/new_scp/detalle.php?id=26815&info_general=yes&inst=yes>
| LIRINS <http://www.ingenieria.uner.edu.ar/grupos/lirins/> | FI
<http://www.ingenieria.uner.edu.ar/>UNER <http://www.uner.edu.ar/>


El vie., 6 mar. 2020 a las 12:34, Brunner, Clemens (
clemens.brunner at uni-graz.at) (<clemens.brunner at uni-graz.at>) escribió:

>         External Email - Use Caution
>
> Hello!
>
> Did you try eegbci.load_data instead of eegbci.data_path (according to the
> docs
> https://mne.tools/dev/generated/mne.datasets.eegbci.load_data.html#mne.datasets.eegbci.load_data)?
> What do you want to do in the first place?
>
> Clemens
>
>
> > On 06.03.2020, at 16:25, Ramiro Gatti <rgatti at ingenieria.uner.edu.ar>
> wrote:
> >
> >         External Email - Use Caution
> >
> >
> > Hello,
> > I am trying to run a script based on the example in method data_path
> from mne.datasets.eegbci:
> >
> > >>> import os
> > >>> from mne.datasets import eegbci
> > >>>
> > >>> url = 'https://physionet.org/files/eegmmidb/1.0.0/'
> > >>> eegbci.data_path(url, os.getenv('HOME') + '/datasets')
> >
> > and get the following error:
> > ...
> > File
> "/home/user/venv/torch/lib/python3.7/site-packages/mne/utils/fetching.py",
> line 173, in _fetch_file
> >     shutil.move(temp_file_name, file_name)
> >   File "/home/user/venv/torch/lib/python3.7/shutil.py", line 564, in move
> >     raise Error("Destination path '%s' already exists" % real_dst)
> > shutil.Error: Destination path
> '/home/user/datasets/MNE-eegbci-data/files/eegmmidb/1.0.0/.part' already
> exists
> >
> > I clarify that the folder did not previously exist.
> > What could be the problem?
> >
> > Best regards,
> >
> > Ramiro Gatti
> > PhD Fellow
> > IBB-CONICET | LIRINS | FIUNER
> > _______________________________________________
> > Mne_analysis mailing list
> > Mne_analysis at nmr.mgh.harvard.edu
> > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200306/7a64e0dc/attachment-0001.html 


More information about the Mne_analysis mailing list