Hello everyone,
I have cloned this git repository: GitHub - OpenNeuroDatasets/ds004837: OpenNeuro dataset - Magnetoencephalographic (MEG) Pitch and Duration Mismatch Negativity (MMN) in First-Episode Psychosis
in cloab.
In principle, it is cloned, git remote is correct, but when trying to read the fiff file
code:
fname = “/content/drive/MyDrive/…/ds004837/sub-2218A/ses-0001/meg/sub-2218A_ses-0001_task-attnmod_run-01_meg.fif”
raw = mne.io.read_raw_fif(fname)
I’ve also tried just: raw = mne.io.read_raw(fname)
but I get the same result.
it gives me this error:
Opening raw data file /content/drive/MyDrive/…sub-2218A_ses-0001_task-attnmod_run-01_meg.fif…
FileNotFoundError Traceback (most recent call last)
in <cell line: 1>()
----> 1 raw = mne.io.read_raw_fif(fname)
3 frames
in init(self, fname, allow_maxshield, preload, on_split_missing, verbose)
in _read_raw_file(self, fname, allow_maxshield, preload, do_check_ext, verbose)
in _check_fname(fname, overwrite, must_exist, name, need_dir, verbose)
/usr/local/lib/python3.10/dist-packages/mne/utils/check.py in _check_fname(fname, overwrite, must_exist, name, need_dir, verbose)
261 raise PermissionError(f"{name} does not have read permissions: {fname}")
262 elif must_exist:
→ 263 raise FileNotFoundError(f’{name} does not exist: “{fname}”')
264
265 return fname
FileNotFoundError: fname does not exist: “/content/drive/MyDrive/…sub-2218A/ses-0001/meg/sub-2218A_ses-0001_task-attnmod_run-01_meg.fif”
For more information, if I bring the file from local and try to read it, it still gives me this other error: ValueError: file ‘/content/drive/MyDrive/…/sub-01_task-abseq_run-01_meg.fif’ does not start with a file id tag
Any help is appreciated, I am new to cloning from git and handling these types of files, sincere thanks!
Xavier,
- MNE version: e.g. 1.6.0
- operating system: Windows 10