We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98f498f commit a8ddc78Copy full SHA for a8ddc78
fmriprep/cli/run.py
@@ -526,7 +526,8 @@ def build_workflow(opts, retval):
526
output_dir = opts.output_dir.resolve()
527
work_dir = opts.work_dir.resolve()
528
bids_filters_file = opts.bids_filters.resolve()
529
- bids_filters = json.load(open(bids_filters_file)) if bids_filters_file else None
+ bids_filters = json.loads(opts.bids_filters.read_text()) \
530
+ if opts.bids_filters else None
531
532
retval['return_code'] = 1
533
retval['workflow'] = None
0 commit comments