bids-validator icon indicating copy to clipboard operation
bids-validator copied to clipboard

CLI --config flag does not find relative paths?

Open sappelhoff opened this issue 4 years ago • 2 comments

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 cloned bids-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.

sappelhoff avatar Feb 05 '21 15:02 sappelhoff

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:

https://github.com/bids-standard/bids-validator/blob/970921cbf2e3e85df195ca16f63ee460c588e596/bids-validator/README.md#L241-L248

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

sappelhoff avatar Feb 05 '21 15:02 sappelhoff