Splitting a .fif dataset

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)