-
Notifications
You must be signed in to change notification settings - Fork 180
[REF] Consistently reference object keys in rules #1203
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
base: master
Are you sure you want to change the base?
Conversation
The problem is that test_rules looks for any dictionaries (including files) that have a key matching an object type, such as "suffixes", "metadata", or "entities". The name "entities" can thus be considered reserved.
Some were mistyped and didn't match the objects.
@TheChymera it looks like a bunch of validator tests are now failing, probably because of the changes I made to the rules files. |
One limitation of the test is that it doesn't recursively look through subfolders, so the Also, |
@tsalo so this is an easy fix, which would just need to go deeper in the nested dictionary structure after this line. I can fix it, but I still don't think this extension reorganization is a good idea.... If I'm the only one, we can go ahead, but maybe explicitly asking for comments somehow would be warranted. This just adds imho unnecessary higher-level categorizations which will make schema editing more intransparent and enable all sorts of exciting discussions about how we divvy up strings/regexes among these abstraction categories. |
- .nii.gz | ||
- .nii | ||
- .json | ||
- niigz |
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.
can we maybe not do this? =^.^=
see #1203 (comment)
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 mean, I still think we should, but it's up to the maintainers/steering group now.
Co-authored-by: Chris Markiewicz <[email protected]>
This PR proposes that we use object keys (i.e., the unique keys of the dictionaries in the object schema files) as our primary object identifiers in the rule schema files. At the moment, we use a mixture of keys and fields within the object definitions, depending on the object type.
Suffixes and extensions are referenced using their object definitions' "value" field, while most (all?) other object types are referenced using the object keys.
Why we might want to make the change
Why we might not want to make the change
.nii.gz
instead ofniigz
or "Gzipped NIFTI"), and we try to ensure that neither object type is overloaded.Changes proposed: