-
Notifications
You must be signed in to change notification settings - Fork 111
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
Add regexps for space entity: EEG and iEEG #1190
Conversation
I think tests are not in place yet for the space entity 😬 this would be a proper place: https://github.com/bids-standard/bids-validator/blob/4c1be20980b1215d45aee5e595b62c14bf2604e2/bids-validator/tests/type.spec.js#L373-L390
You could write it all out, like I did in the JSON schema: https://github.com/bids-standard/bids-validator/blob/4c1be20980b1215d45aee5e595b62c14bf2604e2/bids-validator/validators/json/schemas/common_definitions.json#L21-L28 Or you go over to https://regex101.com/ and check what regexp works. But I suggest the former, not the latter. |
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.
please also check the session level rules, etc.
Codecov Report
@@ Coverage Diff @@
## master #1190 +/- ##
==========================================
+ Coverage 79.09% 82.53% +3.43%
==========================================
Files 78 78
Lines 2622 2622
Branches 598 598
==========================================
+ Hits 2074 2164 +90
+ Misses 407 369 -38
+ Partials 141 89 -52
Continue to review full report at Codecov.
|
@adam2392 I added some commits (including a force push for rebasing, sorry), so please before you continue to work, do:
In particular I:
|
@adam2392 is something holding you back from finishing this PR? Or is it more of a "finding time to do it" issue (which is absolutely fine)? |
Yeah sorry didn't have time, but procrastinated a bit this morning and hopefully this is closer to being done / done. LMk. FYI: currently the validator allows other entities into the |
yes, thanks for the note, see also: bids-standard/bids-examples#244 |
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 added the regexps and tests for EEG.
hopefully this is closer to being done / done
I think it's done
Closes: #743
closes #1164
Adding regex pattern for iEEG space entity.
TODO
Add regex for MEGspace not in their entities currently, although probably would be applicable (headshape + markers)?Questions
MNI152NLin2009[a-c][Sym|Asym]
(a-c and Sym/Asym) in regex?