Skip to content

Commit

Permalink
Merge pull request #1332 from nipreps/fix/anat-bids-filters
Browse files Browse the repository at this point in the history
FIX: Normalize bids-filters' modality keys to be lowercase
  • Loading branch information
oesteban authored Aug 21, 2024
2 parents 2a4989d + 038b1e0 commit 73cd660
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mriqc/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,9 @@ def parse_args(args=None, namespace=None):

# Load BIDS filters
if opts.bids_filter_file:
config.execution.bids_filters = loads(opts.bids_filter_file.read_text())
config.execution.bids_filters = {
k.lower(): v for k, v in loads(opts.bids_filter_file.read_text()).items()
}

bids_dir = config.execution.bids_dir
output_dir = config.execution.output_dir
Expand Down

0 comments on commit 73cd660

Please sign in to comment.