[Mne_analysis] Issue with example in mne.datasets.eegbci.data_path()
Brunner, Clemens (clemens.brunner@uni-graz.at)
clemens.brunner at uni-graz.at
Fri Mar 6 10:33:43 EST 2020
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
More information about the Mne_analysis
mailing list