-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fNIRS loading issue with read_raw_bids #1360
Comments
Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴🏽♂️ |
Thanks for the report @HanBnrd. Would you be willing to contribute a fix for this issue? |
Actually I can't reproduce the #1117 error with the latest package versions, did anything change since then? Seems channels.tsv have the same channel order as the snirf when I load fnirs_motor_group now. However they are different when loading audio_or_visual_speech. Shouldn't having different channel order in the metadata and snirf file actually return an error? I suspect maybe the fnirs_motor_group dataset has been fixed, but also the loading of inconsistent dataset is now no longer returning an error and silently mixing up channel names (it's using the ones from the tsv) and locations (it's using the ones from the snirf). |
interesting, yes maybe -- we'd need to dig into the commit history a little. Perhaps we failed to close that issue appropriately, or it was fixed in another library (mne?)
at least a warning, I think.
I don't think this is the case. That data is downloaded via this function: https://mne.tools/mne-nirs/stable/_modules/mne_nirs/datasets/fnirs_motor_group/fnirs_motor_group.html#data_path And in the code, this points to this dataset: https://github.com/rob-luke/BIDS-NIRS-Tapping Which has not been updated in >2 years. |
Description of the problem
With fNIRS files (in SNIRF format)
mne_bids.read_raw_bids
is sorting channel names differently than channel locations, leading to mixed up channel distances. This can be reproduced for example using data from this tutorial.Steps to reproduce
Expected results
We'd expect the same result as using
mne.io.read_raw_snirf
Actual results
mne_bids.read_raw_bids
is sorting channels differently than locations and the channel distances are mixed up.Additional information
Seems to only be an issue when SNIRF files have a specific structure, which is the case for the dataset of the linked tutorial.
The text was updated successfully, but these errors were encountered: