Sidecar fields should specify their data type (e.g. float
or int
) if not a string
#350
Labels
enhancement
New feature or request
opinions wanted
Please read and offer your opinion on this matter
My use case was to look at the
MagneticFieldStrength
field. That one is a RECOMMENDED one in https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/01-magnetic-resonance-imaging-data.html#scanner-hardware and "Corresponds to DICOM Tag 0018,0087 Magnetic Field Strength". So it seems (not spelled out) that it should be a numeric value.Absence of clarity results in cases where either people specify non numeric value (e.g.
3T
for MagneticFieldStrength) where numeric value is expected:or have it as a string
"3"
in the json (don't have an immediate example in the wild but the result of listing known values via datalad suggests that:NB ignore those non-compliant hits using
FieldStrength
;-)So I think that it would be valuable to enhance all lists of Fields with information about the expected data types, and make
bids-validator
verify correct specification (the issue for the MagneticFieldStrenth is https://github.com/bids-standard/bids-validator/issues/851).The text was updated successfully, but these errors were encountered: