-
Notifications
You must be signed in to change notification settings - Fork 109
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
EEG and iEEG "electrodes" and "coordsystem" files accept more entities than they should #1198
Comments
Landed on this while investigating an issue from bids matlab bids-standard/bids-matlab#542 Just to know: is it worth putting effort into creating regex that match the schema or wait for the validator to directly use the schema. |
I think at this point we should wait for the schema based validator to take over and invest our time in effort in more urgent issues. However if you want to dive into this, it'd still be helpful. |
irony: on oh yes!!!! I love writing complex regex to parse file names!!! irony: off OK let's wait then. |
We've gone the other way and permitted more entities to avoid unnecessary breakage. |
crossref:
According to the spec, electrodes and coordsystem files should accept:
see https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/03-electroencephalography.html#electrodes-description-_electrodestsv
But they accept many more.
See here:
https://github.com/bids-standard/bids-validator/blob/5d3835b5b6f4fcbbade1b7122c57a3f48f92cb46/bids-validator/bids_validator/rules/file_level_rules.json#L358-L498
https://github.com/bids-standard/bids-validator/blob/5d3835b5b6f4fcbbade1b7122c57a3f48f92cb46/bids-validator/bids_validator/rules/session_level_rules.json#L78-L195
https://github.com/bids-standard/bids-validator/blob/5d3835b5b6f4fcbbade1b7122c57a3f48f92cb46/bids-validator/bids_validator/rules/top_level_rules.json#L80-L119
Overall the regexps are getting unwieldy ... we should move towards building the regexps from the BIDS schema
The text was updated successfully, but these errors were encountered: