-
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
[MRG] Suggest alternatives when value not found in list #1066
Conversation
... on
which I think is much less helpful. |
Codecov Report
@@ Coverage Diff @@
## main #1066 +/- ##
==========================================
+ Coverage 93.95% 95.06% +1.10%
==========================================
Files 25 25
Lines 3822 3850 +28
==========================================
+ Hits 3591 3660 +69
+ Misses 231 190 -41
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love this idea. Just one comment
I suspect the failures in https://github.com/mne-tools/mne-bids/runs/8286821887?check_suite_focus=true are due to: where EEG positions in |
doing
replicates the problem. You see that there is no fiducials read from the files. I see two options:
I am leaning towards the 2nd solution. thought? |
Pinging @sappelhoff |
in principle I am also leaning towards @agramfort's 2nd solution ... except that one may get coordinates that are already in "head" (which is the same as "captrak", and just in general a sensible /obvious way to define coordinates) without fiducials --> these are still valid, even if no fiducials are present, no? |
can you come up with good fiducials automatically for captrack?
… Message ID: ***@***.***>
|
it's the same as head, LPA is at (-1, 0, 0), RPA is at (1, 0, 0), NAS is at (0, 1, 0) ... not sure if it's possible to estimate the positions based on that. probably not |
@agramfort @larsoner @hoechenberger I think we should agree on a fix for this problem, because our regular CI fails because of it for many days now :-) Taking @agramfort's comment:
how do you guys think we should fix it? |
To be clear we're talking about CNT not CTF. CTF usually has fiducials IIRC because the HPI coils are placed there. FWIW I'm happy with putting these in UNKNOWN coord frame instead as kind of a bug fix. Previously the behavior was just to put locations in I see two options really:
My vote is to do (2) for now since MNE-Python 1.2 release is in the next week. Then we can take weeks/months to sort out the correct solution via (1) in follow-up PRs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can merge this and deal with the dig issue in a separate PR.
Thanks @larsoner
+1
… Message ID: ***@***.***>
|
PR Description
When
lst.index(val)
fails (e.g.,subjects.index(subject)
), try to help people out with suggestions. I was on this PR when I got the traceback in #1065:I figured subject lists are generally short enough to
allow_all
to be given (if there are no close matches), but wasn't sure about the others. But they can easily be added elsewhere or tweaked in these cases by follow-up PRs by heavier/more experienced users and devs of MNE-BIDS.Merge checklist
Maintainer, please confirm the following before merging.
If applicable: