Skip to content

Commit a8ddc78

Browse files
bpinsardoesteban
andauthored
Update fmriprep/cli/run.py
Co-Authored-By: Oscar Esteban <[email protected]>
1 parent 98f498f commit a8ddc78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fmriprep/cli/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,8 @@ def build_workflow(opts, retval):
526526
output_dir = opts.output_dir.resolve()
527527
work_dir = opts.work_dir.resolve()
528528
bids_filters_file = opts.bids_filters.resolve()
529-
bids_filters = json.load(open(bids_filters_file)) if bids_filters_file else None
529+
bids_filters = json.loads(opts.bids_filters.read_text()) \
530+
if opts.bids_filters else None
530531

531532
retval['return_code'] = 1
532533
retval['workflow'] = None

0 commit comments

Comments
 (0)