I’ve observed a strange behaviour (not sure if a bug) when saving Raw files, and a split is required. This only happens with the BIDS split naming version and if the BIDS naming convention is not followed, so that’s why it may be the expected behaviour.
Is this the expected behaviour or is it a bug?
The easier workaround is to use the neuromag naming convention but the BIDS one fits better some additional funtions that I have developed
The file name doesn’t conform to BIDS. By the spec, the last bit represents the modality; that’s why the split modality goes before that.
I have to say I’m not sure why MNE supports something called “BIDS split naming” if it doesn’t check whether the filename is even BIDS-compatible in the first place … this probably should not be part of the public API at all.
I think we added the BIDS split naming back then to make something possible in mne-bids. I don’t remember why we made it part of the public API, instead of another route.
Now that it’s in the public API it’s probably worth keeping there. Especially since people could potentially have legitimate use cases where they want to write their own BIDS-filename-formatted data, or even don’t care about the BIDS-ness but prefer how the BIDS option operates. To me we should just update the docs to say what the option will actually do, and note that it’s there primarily for compat with MNE-BIDS. I don’t think we should check BIDS path validity in MNE-Python.