-
Notifications
You must be signed in to change notification settings - Fork 25
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
validate-bids doesn't report an error on a file with incorrect suffix #991
Comments
what does it validate really? doesn't even complain if sub / ses label doesn't match between folders and files:
edit: here is the tarball of that "tricky" case -- http://www.onerussian.com/tmp/test-bids.tgz |
@yarikoptic it marks the file as invalid if there is a mismatch, just that the function only returns a dictionary of the summary, and optionally writes issues it found to the report file via This should additionally log the errors: #992 |
chymera@decohost ~ $ wget http://www.onerussian.com/tmp/test-bids.tgz -q
chymera@decohost ~ $ tar xvf test-bids.tgz
test/
test/dataset_description.json
test/sub-MITU02/
test/sub-MITU02/ses-MR2/
test/sub-MITU02/ses-MR2/sub-MITU01_ses-MR_SSSPDmap.nii.gz
chymera@decohost ~ $ dandi validate-bids test -r
2022-04-29 08:56:51,060 [ WARNING] A newer version (0.39.4) of dandi/dandi-cli is available. You are using 0.39.2+47.gb73f44d.dirty
2022-04-29 08:56:51,157 [ INFO] Note: NumExpr detected 12 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
2022-04-29 08:56:51,158 [ INFO] NumExpr defaulting to 8 threads.
2022-04-29 08:56:52,377 [ WARNING] BIDSVersion 1.5.0 is less than the minimal working 1.7.0+012+dandi001. Falling back to 1.7.0+012+dandi001. To force the usage of earlier versions specify them explicitly when calling the validator.
2022-04-29 08:56:53,148 [ INFO] BIDS validation log written to /home/chymera/.cache/dandi-cli/log/bids-validator-report_20220429125653Z-1736.log
2022-04-29 08:56:53,149 [ ERROR] The `.*?/README$` regex pattern file required by BIDS was not found.
2022-04-29 08:56:53,149 [ ERROR] The `.*?/CHANGES$` regex pattern file required by BIDS was not found.
2022-04-29 08:56:53,149 [ WARNING] The `/home/chymera/test/sub-MITU02/ses-MR2/sub-MITU01_ses-MR_SSSPDmap.nii.gz` file was not matched by any regex schema entry.
2022-04-29 08:56:53,149 [ INFO] Logs saved in /home/chymera/.cache/dandi-cli/log/20220429125650Z-1736.log
chymera@decohost ~ $ ppb /home/chymera/.cache/dandi-cli/log/bids-validator-report_20220429125653Z-1736.log
Upload succeeded:
https://ppb.chymera.eu/fe88e3.log |
now it is #1037 I think
while testing the 0.39.6+39.g8139966 of #1011 |
@yarikoptic This is not the same issue as the initial one reported, and that particular issue was just missing reporting which has been fixed a while ago. |
there is no SSSPDmap, only PDmap:
The text was updated successfully, but these errors were encountered: