Repository navigation
FIX: Handle channel dropout in eyelink files (e.g. switching from binocular to monocular mode etc) - #12847
Conversation
|
To me naively the easiest solution is actually to treat the data as binocular, but set one of the eyes to |
Hmm yeah could do.. I'll give it a try and will see how much complexity it adds. |
|
Hey Scott, hope you’re good. any updates on this? I actually found a bunch of files where we have the opposite problem monocular to binocular.
Thanks!
a
From: Scott Huberty ***@***.***>
Date: Friday, September 13, 2024 at 10:43 AM
To: mne-tools/mne-python ***@***.***>
Cc: Adam Naples ***@***.***>, Mention ***@***.***>
Subject: Re: [mne-tools/mne-python] BUG: read raw eyelink file that switches from binocular to monocular mode (PR #12847)
To me naively the easiest solution is actually to treat the data as binocular, but set one of the eyes to nan when it switches to monocular. Then if you want a "monocular instance" you just raw.drop_channels(["eye_right"]) or whatever (assuming left is the one that was on the whole time).
Hmm yeah could do.. I'll give it a try and will see how much complexity it adds.
—
Reply to this email directly, view it on GitHub<#12847 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB4VNG7OBPM3LMSO6MJX5KTZWL2ZDAVCNFSM6AAAAABOD6UXKKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBZGEZDOMRRGU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
|
Hey @anomalosepia Thanks for the ping ; ) Someone else has reported the same issue.. I will try to get to it this weekend! |
Havent tested the rest of the suite yet.. Will likely have to make some more fixes due to the updated code
Actually we are now catching a case that we didn't before, which is good! That is why I adjusted test_multi_block_misc_channels, to make sure we continue to warn when the eye being tracked changes
- I just added them there for myself when I was debugging. But type hints dont play well with the _soft_import func - also removed some cruft comments
|
Alright ready for review. Sorry that the diff is large, but the only path forward that I could see involved some refactoring. Basically now we are reading in acquisition blocks one at a time and figuring out the channels in them, and we integrating those blocks at the end (dealing with scenarios where one acquisition block is missing the pupil channel etc). |
Co-authored-by: Eric Larson <[email protected]>
- explicitly check that the sfreq didnt change during recording - tell the user the implications of channel dropout Co-authored-by: Eric Larson <[email protected]>
|
Marking for merge-when-green, thanks in advance @scott-huberty ! |
|
Hey @larsoner can you re-run that failed azure job? It looks like it timed out. |
…ocular to monocular mode etc) (mne-tools#12847) Co-authored-by: Eric Larson <[email protected]>
…ocular to monocular mode etc) (mne-tools#12847) Co-authored-by: Eric Larson <[email protected]>
This is an issue as PR.
A file from one of our studies causes
read_raw_eyelinkto break. The file starts recording binocular data and switches to monocular data mid-way through the recording. This is something that EyeLink acquisition software allows.Although I can't share the file, I’ve created a test that simulates the error. I'm still investigating a fix.
Potential Solutions
read_raw_eyelinkthat reads data for one eye only. This is probably (a lot?) more development work.CC @anomalosepia