Closed hoechenberger closed 2 years ago
I think this is related to:
... in the example the user explains how they first read from src, and then write back to src. SNIRF currently just uses copyfile ...
This happens first (note the unlink
): https://github.com/mne-tools/mne-bids/blob/213c3789390dfacc285418d8f54c6575ca104e7f/mne_bids/write.py#L1826-L1837
And then finally this is supposed to happen: https://github.com/mne-tools/mne-bids/blob/213c3789390dfacc285418d8f54c6575ca104e7f/mne_bids/write.py#L1931-L1932
... but the file is not there anymore.
We'll have a proper error message after #889
Closing this as a duplicate of #867
Reported at https://mne.discourse.group/t/write-raw-bids-deletes-snirf-file/5182