I would like to split a .fif data set into multiple data sets, based on time. I found this guide from 2011, but it doesn’t seem to work anymore: [Mne_analysis] splitting fif files
Specifically, the command “from mne import fiff” is not working when I attempt it. Is there any way I can do something similar to the method described here on the current version of MNE?
Right now, I have version 0.22.0 installed, and I am using Python 3.7.6 on Windows 10.
Hello,
the solution proposed in splitting fif files - #2 by system (the one you pointed to before) still works in principle, but as you figured, the fiff
import has moved. To read a file, you now have to use:
import mne
raw = mne.io.read_raw_fif(fname)
Then you can proceed just as described in the solution you found:
raw.save('sample_audvis_meg_raw_part1.fif', tmin=0, tmax=150)
# save the rest in a second FIF file
raw.save('sample_audvis_meg_raw_part2.fif', tmin=150)