-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
We are using the bids-validator on the git-part of datalad repos in CI, and so we don't pull annexed files for performances.
In the previous versions, using --ignoreNiftiHeaders made it work.
I don't know which recent changes caused the validator to still try to stat the files, and I don't see which option would prevent that.
traceback is
bids-validator --debug DEBUG --ignoreNiftiHeaders --color true --config /tmp/bids-validator_config.json /bids/
error: Uncaught (in promise) NotFound: No such file or directory (os error 2): stat '/bids/sub-2449/ses-1a/anat/sub-2449_ses-1a_rec-orig_mod-T1w_defacemask.nii.gz'
for (var i6 = 0, len = code2.length; i6 < len; ++i6) {
^
at async Object.stat (ext:deno_fs/30_fs.js:410:15)
at async _readFileTree (https://raw.githubusercontent.com/bids-standard/bids-validator/refs/heads/deno-build/bids-validator.js:52:26)
at async _readFileTree (https://raw.githubusercontent.com/bids-standard/bids-validator/refs/heads/deno-build/bids-validator.js:65:23)
at async _readFileTree (https://raw.githubusercontent.com/bids-standard/bids-validator/refs/heads/deno-build/bids-validator.js:65:23)
at async _readFileTree (https://raw.githubusercontent.com/bids-standard/bids-validator/refs/heads/deno-build/bids-validator.js:65:23)
at async readFileTree (https://raw.githubusercontent.com/bids-standard/bids-validator/refs/heads/deno-build/bids-validator.js:89:16)
at async main (https://raw.githubusercontent.com/bids-standard/bids-validator/refs/heads/deno-build/bids-validator.js:29:16)
at async https://raw.githubusercontent.com/bids-standard/bids-validator/refs/heads/deno-build/bids-validator.js:3:16
config is:
{
"ignore": [
{"code": "TSV_COLUMN_MISSING", "location": "**_scans.tsv"},
{"code": "TSV_ADDITIONAL_COLUMNS_UNDEFINED", "location": "**_scans.tsv"},
{"code": "TSV_COLUMN_MISSING", "location": "**_events.tsv"},
{"code": "SCANS_FILENAME_NOT_MATCH_DATASET"},
{"code": "FILE_READ", "location": "**_scans.tsv"},
{"code": "FILE_READ", "location": "**_events.tsv"}
],
"warning": [
{"code": "SIDECAR_KEY_REQUIRED", "subCode": "Units"},
{"code": "REPETITION_TIME_AND_ACQUISITION_DURATION_MUTUALLY_EXCLUSIVE"}
]
}
Thanks for your help!
yarikoptic
Metadata
Metadata
Assignees
Labels
No labels