-
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] Allow electrodes.tsv to not fully match Raw object #704
Conversation
@hoechenberger I have taken out the explicit checks for subset of electrodes in raw, per #485 |
Thanks @adam2392, I will take a closer look at this tomorrow! |
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.
@Immiora can you please try if the changes in this PR solve your problem?
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.
The changes overall seem fine to me, but I think that making a read_dig_bids
function public we are catering to a very niche use case that can also be solved with two or three lines of code by the niche-user (adam :-P)
I am not 100% against it, but more public functions are not always better.
Heh okay. Not 100% in on the idea, so I just removed it. |
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.
thanks for removing the controversial part :)
Co-authored-by: Stefan Appelhoff <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #704 +/- ##
==========================================
- Coverage 93.92% 93.91% -0.02%
==========================================
Files 23 23
Lines 2749 2759 +10
==========================================
+ Hits 2582 2591 +9
- Misses 167 168 +1
Continue to review full report at Codecov.
|
Co-authored-by: Richard Höchenberger <[email protected]>
@adam2392 Tests are failing. Aside from this, LGTM |
Don't get mad at me, but the tests are failing because I think there's just some complications in earlier versions (due to prolly me), but with the latest constraints from the validator and spec, the "correct" way of doing things is at least more clear. However, had to adjust a few more lines... :p Pushing up soon. |
Co-authored-by: Richard Höchenberger <[email protected]>
Co-authored-by: Richard Höchenberger <[email protected]>
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.
Aside from this one comment, LGTM
Thanks, @adam2392! |
PR Description
Closes: #701
Partially addresses: #605Similar in style to #698
Summary
This PR allows electrodes.tsv contents to not fully match chs in Raw.
In addition, it fixes the repo to match recent clarifications to the spec and validator. Since the spec and validator was updated to constrain how
space
entity and*CoordinateSystem
in the*coordsystem.json
file must match, there are a few changes needed to make things work.iEEG coordinate frames:
mni_tal
for 'fsaverage'and
unknownfor
"Other"/, and
rasfor
ACPC. Note that
ACPCin BIDS maps to
ras` in MNE, but not the other way around.fs_tal
in mne-python is unused, per discourse discussion.Unit tests
space
entity and coordinatesystem writing needed to be fixed.Old Note (not implemented, so no need to read)
If we don't think having
read_dig_bids
as a public function is necessary, then I can take it out, but the general workflow in #605 related to iEEG electrode coordinate processing doesn't necessitate a Raw file. In addition, if mne-python coordinate system handling becomes more and more in-line with BIDS, then the DigMontage object will be valuable. For example, I'm imagining a future where:In summary, having an API to go from BIDS files -> DigMontage is a nice interface for people that then need to maybe do other stuff that doesn't need a Raw dataset.
Merge checklist
Maintainer, please confirm the following before merging: