Skip to content

Commit 038b1e0

Browse files
committed
fix: normalize bids-filters' modality keys to be lowercase
Resolves: #1331.
1 parent 2a4989d commit 038b1e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mriqc/cli/parser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,9 @@ def parse_args(args=None, namespace=None):
543543

544544
# Load BIDS filters
545545
if opts.bids_filter_file:
546-
config.execution.bids_filters = loads(opts.bids_filter_file.read_text())
546+
config.execution.bids_filters = {
547+
k.lower(): v for k, v in loads(opts.bids_filter_file.read_text()).items()
548+
}
547549

548550
bids_dir = config.execution.bids_dir
549551
output_dir = config.execution.output_dir

0 commit comments

Comments
 (0)