Sep-05-2020, 02:07 PM
Hey. New to Python. Just installed MNE. Any reason sample data has not downloaded successfully also as part of the library / package? Thanks
|
MNE Sample Data
|
|
Sep-05-2020, 02:07 PM
Hey. New to Python. Just installed MNE. Any reason sample data has not downloaded successfully also as part of the library / package? Thanks
Sep-05-2020, 03:35 PM
please show code
import os
import numpy as np
import mne
import matplotlib.pyplot as plt
mne.datasets.sample.data_path(path=None, force_update=False, update_path=True, download=True, verbose=None)
sample_data_folder = mne.datasets.sample.data_path()
sample_data_raw_file = os.path.join(sample_data_folder, 'MEG', 'sample',
'sample_audvis_filt-0-40_raw.fif')
raw = mne.io.read_raw_fif(sample_data_raw_file)
Sep-06-2020, 03:32 PM
One thing stands out: looks like you're missing an import:
from mne.datasets import sampleI suggest you try the sample application here first: https://mne.tools/dev/auto_tutorials/sou...ation.html |
|
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Sample based on the distribution of a feature to create more balanced data set | dervast | 1 | 2,840 |
Nov-15-2019, 12:25 AM Last Post: schuler |
|