Is there an error message? If so, can you post it?
Just looking at your json, there is a syntax error. Unlike python, jsons do not allow trailing commas for the final item in lists or dicts, so remove the comma after “VNav” like this:
/usr/local/miniconda/lib/python3.7/site-packages/bids/layout/validation.py:46: UserWarning:
The ability to pass arguments to BIDSLayout that control indexing is likely to be removed in future; possibly as early as PyBIDS 0.14.
This includes the `config_filename`, `ignore`, `force_index`, and `index_metadata` arguments.
The recommended usage pattern is to initialize a new BIDSLayoutIndexer with these arguments, and pass it to the BIDSLayout via the `indexer` argument.
warnings.warn("The ability to pass arguments to BIDSLayout that control "
I see that this is an older issue but I’m having the same problem and the solution does not work for me. I passed a --bids-filter-file flag yet fmriprep is pulling all session, all tasks and throwing no errors. My filter file is:
{
“fmap”: {
“datatype”: “fmap”,
“session”: “MR1”,
“suffix”:“epi”,
“run”:“3”
},
“t1w”: {
“datatype”: “anat”,
“session”: “MR1”,
“suffix”: “T1w”
},
“bold”: {
“datatype”: “func”,
“session”: “MR1”,
“suffix”: “bold”,
“task”:“gambling”
}
}