-
Notifications
You must be signed in to change notification settings - Fork 171
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
[SCHEMA] Add objects and rules for sessions and scans files #985
Conversation
I was also working on this and trying to make it work with our validator. If the suggestion was to treat these files similarly to datatypes and not create a separate YAML file type for them, perhaps the YAML documenting them can live inside the The only issue which I see with that, is that the datatype file name would be assumed as an intermediary subdirectory, i.e. automatic path constructors as used by validators or by |
In as far as anybody finds this relevant at this point, this is how we could ~seamlessly integrate directory addition with all the other datatypes: This is addressing the former point I raised about datatypes which require a subdirectory, assuming all modality datatypes require a subdirectory: https://github.com/TheChymera/bids-specification/blob/e92d094a20135992cc4f9d8c7ee27e0c94bc1316/tools/schemacode/schemacode/validator.py#L216-L222 I've tried to base this code closely off of
|
I think I'd prefer to avoid having them in the datatypes folder and to instead pursue adding a
That's awesome! I haven't had a chance to take a close look at either of your code snippets, but I will try to soon. |
@tsalo so you'd like to flatten the datatype file hierarchy as well and have everything live under |
Also, do you have any input on this? I think it would be cool if we could have a minimal validator which draws upon the BIDS documentation functions and is thereby in sync with it by design. |
Codecov Report
@@ Coverage Diff @@
## master #985 +/- ##
==========================================
+ Coverage 34.05% 35.13% +1.07%
==========================================
Files 8 8
Lines 834 834
==========================================
+ Hits 284 293 +9
+ Misses 550 541 -9
Continue to review full report at Codecov.
|
@TheChymera I meant more that the subfolders would still exist, but for convenience, rather than as an actual source of information.
That sounds like a good idea, and the code itself looks solid. I think the actual discussion of the minimal validator should probably be a part of the schema meeting, but using similar patterns for rendering and regex construction seems like a good plan. |
Closing this in favor of #1006. |
Closes #978. This continues from Thursday's schema conversation.
Changes proposed:
objects/suffixes.yaml
.tabular_metadata.yaml
.sub
entity, then it MUST go in the subject subfolder).required: false
fromrules/top_level_files.yaml
, given that the default should befalse
moving forward.objects/top_level_files.yaml
toobjects/suffixes.yaml
. These filenames are essentially suffixes without entities, even though some of them have underscores in the names (e.g.,dataset_description
), which are normally prohibited for suffixes.To do: