-
Notifications
You must be signed in to change notification settings - Fork 168
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
[ENH] use of n/a in RECOMMENDED
fields
#1982
Comments
For some BEPs, there were conflicts between metadata that were considered enough of a best practice that it should be REQUIRED and known cases where the metadata were absent, so requiring its presence but permitting For RECOMMENDED and OPTIONAL fields, allowing that escape hatch only increases the likelihood of a tool dumping
I don't understand why an identical set of data entries is particularly desirable. Could you elaborate on that? If I'm writing a tool to accept BIDS data and collate entries into, e.g., a dataframe, I need to be equally prepared to deal with missing fields as ones with special missing-value indicators. Otherwise I'm writing to a stricter specification than BIDS, and my tool will not work on all BIDS datasets. |
thanks for the explanations @effigies -
you are right from a tool perspective. but BIDS datasets are human readable, and the special entry
was my immediate idea, too, in case the standard remains unchanged. |
Metadata fields and their values are defined here in schema.objects.metadata (with formats in schema.objects.formats) and their requirement levels in schema.rules.sidecars. The validator constructs JSON schema from these inputs and applies it to the collated sidecar data. Anything much more complicated than that is going to become brittle quickly. Validating One thing I wonder about is allowing This may be unworkable, since the inheritance principle says that there is no such thing as unsetting, and |
ok, so I take away that:
fine with me. should i close the issue, or do you want to keep it open @effigies ? my only workable suggestion would then be that the docs might be a bit clearer about the inconsistent treatment of |
Your idea
Hi all,
related to #876
i checked the issue tracker, but perhaps i missed something or it has been discussed before..
in this case, apologies!
I encountered a problem (in my perspective) with
RECOMMENDED
sidecar entries.BIDS validator complains about
n/a
entries, IFn/a
s are not explicitly allowed AND the required datatype is something else thanstring
(e.g. numerical)in my case, i encountered it with head circumference measures in EEG recordings
there are 2 separate points in this:
n/a
s if the required datatype isstring
)n/a
for allRECOMMENDED
fieldsother than perhaps with the
REQUIRED
fields, allowingn/a
entries shouldn't risk integrity or interpretability of the BIDS dataset.it might in the contrary increase consistency of the dataset: if i'm not mistaken, the current rules imply that i would have to remove
n/a
fields in a subject, even if it is just missing data and all other subjects have this information. allowingn/a
enables users to have an identical set of data entries across all subjects (including the explicit information if something is missing).what are your thoughts on that?
The text was updated successfully, but these errors were encountered: