Renaming a split file

External Email - Use Caution

Dear MNE community

When renaming split files outside of MNE-Python (say by issuing a bash
command), it is no longer possible to read those files with, say,
/mne.read_epochs/, because it is still looking for the original name of
the file (see attached script). Is it possible to change the information
in the FIFF file by using any of MNE-Python's functions such that it
looks for the renamed filename instead of the original name?

All the best

Lau

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200729/2e4a6f56/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: renaming_split_files.py
Type: text/x-python
Size: 785 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200729/2e4a6f56/attachment.py

External Email - Use Caution

hi Lau,

you want to do this without writing the files again?
If so you would need to update the fif file inplace.

Alex

External Email - Use Caution

Hi Alex

Exactly, thanks! That was what I was fearing - I was reluctant to start
editing the fif files, as it doesn't exactly seems easy - For now I've
chosen to load and save with a different name, even though it is quite
some processing time for my present data set,

Best

Lau