bids-standard / bids-validator

Validator for the Brain Imaging Data Structure
https://bids-standard.github.io/bids-validator/
MIT License
1 stars 4 forks source link

Warn if files from the same file collection have different shapes #39

Open tsalo opened 11 months ago

tsalo commented 11 months ago

I initially asked about this in https://github.com/bids-standard/bids-specification/issues/869. For some file collections (e.g., multi-echo or complex-values fMRI data), the files all come from the same acquisition and MUST have the same shape. For others (e.g., qMRI scans), there's no such restriction. As such, I think it would be very useful to raise a warning if the file collection contains files with different sizes.

effigies commented 11 months ago

Should have a think about how to do this in the schema. I think it would require a new association that all files in the collection share. Then we could say something like nifti_header.shape == associated.collection[0].shape.