Open tientong98 opened 2 hours ago
I can look at this in a bit, but figure I'll ping @tsalo due to CuBIDS, as he might know something I don't.
And to be clear, are you using https://bids-standard.github.io/bids-validator/ or https://bids-standard.github.io/bids-validator/legacy/?
Okay, so the difference is that you're using the schema validator webapp and the legacy validator CLI.
We'll look at the data to determine if there's a bug in the schema validator or a problem with the check in the legacy validator.
For the command line version, I'm using node v22.6.0 npm 10.8.2 bids-validator 1.15.0
And bids-validator doesn't return any error or warning, while the webapp does -- on the same data.
I'm using data from https://github.com/PennLINC/CuBIDS/raw/main/cubids/tests/data/BIDS_Dataset.zip, but just included the dataset_description.json, README, and sub-02 folder.
In addition, when running the webapp version, I got this error:
The number of volumes in this scan does not match the number of volumes in the associated '.bvec' and '.bval' files. /sub-02/ses-phdiff/dwi/sub-02_ses-phdiff_acq-HASC55AP_dwi.nii.gz
However, NVols = 61, bval has 61 values, and bvec is an array with the shape of 3x61, so this shouldn't be an error.