FIX: Allow eyetrack channels to be used with plot_compare_evoked#12190
FIX: Allow eyetrack channels to be used with plot_compare_evoked#12190larsoner merged 7 commits intomne-tools:mainfrom
Conversation
|
The real question to me is: should
No hurry, and best wishes! |
|
For the pupil size, that opens another question when comparing evoked/signals from different subjects/recordings. As it's in AU, and the camera distance/illumination/lens can differ + the subject eye size/shape differ, is it actually comparable? |
zscoring within subject is a typical answer to this worry. Though researchers also do try to control distance to camera/screen (e.g. with a chinrest and forehead bar) |
I would say no, they are not "ephys data from the brain" which is what we mean by "data" https://mne.tools/dev/documentation/glossary.html#term-data-channels |
|
Can you ad a tiny test that it plots? So add to Also on |
Sure can do.
Actually it was an assert error.. I can amend it use an if not clause and raise a more informative error |
That would be great. I would use |
|
... and actually you even could use this |
…ne-python into eyetrack_compare_evokeds
|
Update. I added a more informative error and a few more lines to |
larsoner
left a comment
There was a problem hiding this comment.
Can you add a line to doc/changes/devel.rst and merge in latest main (or rebase) and then we can merge? Thanks @scott-huberty !
|
Oh yes thanks for reminding me! |
|
Thanks @scott-huberty ! |
* upstream/main: Add some omitted dependencies to "full" and "doc" variants (mne-tools#12235) Fix pyproject.toml setuptools configuration (mne-tools#12240) FIX: Allow eyetrack channels to be used with plot_compare_evoked (mne-tools#12190)
Per this discussion post:
https://mne.discourse.group/t/mne-viz-plot-compare-evokeds-for-eyetracking/7816
It seems that eyetrack channels are not an accepted channel type for
plot_compare_evokeds. Off the top of my head I can't think of a good reason for why they shouldn't be accepted, so I've gone ahead and implemented a quick fix. I wouldn't mind a moment to really think about this or discuss it with others, but I'm defending my PhD tomorrow so this thinking won't happen for me until next week 😃A MWE, which is just a proof of concept (in this example the evokeds aren't informative at all). (requires mne 1.6):