Open sappelhoff opened 3 years ago
separate question: Didn't we have the option once to even specify a string? Something like bids-validator eeg_matchingpennies/ --config '{ "ignore": [99] }' ? I think that'd be helpful sometimes.
aah found it:
but it's annoying because one MUST specify at least two "ignores" to end up with an array, seems like an easy to solve issue.
See: https://github.com/bids-standard/bids-validator/issues/802
interestingly, for me legacy one does not care at all about the absent config file -- e.g.
~/datasets/1076_spacetop master !1 ▓▒░──
❯ podman run -it --rm -v "${HOME}:${HOME}:ro" -v "${PWD}:${PWD}:ro" -w "${PWD}" bids/validator --config nonexisting .
bids-validator@1.14.13
(node:1) Warning: Closing directory handle on garbage collection
(Use `node --trace-warnings ...` to show where the warning was created)
1: [ERR] A json sidecar file was found without a corresponding data file (code: 90 - SIDECAR_WITHOUT_DATAFILE)
./sub-0001/ses-01/fmap/sub-0001_ses-01_acq-96dirX6b0Xmb_dir-ap_epi.json
./sub-0001/ses-01/func/sub-0001_ses-01_task-alignvideo_acq-mb8_run-01_bold.json
...
deno
version is ok
❯ bids-validator-deno --config nonexisting .
error: Uncaught (in promise) NotFound: No such file or directory (os error 2): readfile 'nonexisting'
...
Came up in https://github.com/bids-standard/bids-examples/issues/229#issuecomment-774096886 related: https://github.com/bids-standard/bids-validator/issues/1129
Trying to run
bids-validator eeg_matchingpennies/ -c bidsconfig.json
from the root of a clonedbids-examples
repository results in an error.Same issue if I specify
./bidsconfig.json
Running
bids-validator eeg_matchingpennies/ -c $PWD/bidsconfig.json
however works. (See the prepended$PWD
)I feel like all of the options I named here should work.
separate question: Didn't we have the option once to even specify a string? Something like
bids-validator eeg_matchingpennies/ --config '{ "ignore": [99] }'
? I think that'd be helpful sometimes.