Skip to content

Commit 2505c19

Browse files
bpinsardeffigies
andauthored
Update fmriprep/workflows/base.py
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 97311ed commit 2505c19

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

fmriprep/workflows/base.py

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -341,27 +341,19 @@ def init_single_subject_wf(subject_id: str):
341341

342342
# allow to run with anat-fast-track on fMRI-only dataset
343343
if 't1w_preproc' in anatomical_cache and not subject_data['t1w']:
344-
workflow.connect(
345-
[
346-
(bidssrc, bids_info, [(('bold', fix_multi_T1w_source_name), 'in_file')]),
347-
(anat_fit_wf, summary, [('outputnode.t1w_preproc', 't1w')]),
348-
(anat_fit_wf, ds_report_summary, [('outputnode.t1w_preproc', 'source_file')]),
349-
(anat_fit_wf, ds_report_about, [('outputnode.t1w_preproc', 'source_file')]),
350-
]
351-
)
344+
workflow.connect([
345+
(bidssrc, bids_info, [(('bold', fix_multi_T1w_source_name), 'in_file')]),
346+
(anat_fit_wf, summary, [('outputnode.t1w_preproc', 't1w')]),
347+
(anat_fit_wf, ds_report_summary, [('outputnode.t1w_preproc', 'source_file')]),
348+
(anat_fit_wf, ds_report_about, [('outputnode.t1w_preproc', 'source_file')]),
349+
]) # fmt:skip
352350
else:
353-
workflow.connect(
354-
[
355-
(bidssrc, bids_info, [(('t1w', fix_multi_T1w_source_name), 'in_file')]),
356-
(bidssrc, summary, [('t1w', 't1w')]),
357-
(
358-
bidssrc,
359-
ds_report_summary,
360-
[(('t1w', fix_multi_T1w_source_name), 'source_file')],
361-
),
362-
(bidssrc, ds_report_about, [(('t1w', fix_multi_T1w_source_name), 'source_file')]),
363-
]
364-
)
351+
workflow.connect([
352+
(bidssrc, bids_info, [(('t1w', fix_multi_T1w_source_name), 'in_file')]),
353+
(bidssrc, summary, [('t1w', 't1w')]),
354+
(bidssrc, ds_report_summary, [(('t1w', fix_multi_T1w_source_name), 'source_file')]),
355+
(bidssrc, ds_report_about, [(('t1w', fix_multi_T1w_source_name), 'source_file')]),
356+
]) # fmt:skip
365357

366358
workflow.connect([
367359
(inputnode, anat_fit_wf, [('subjects_dir', 'inputnode.subjects_dir')]),

0 commit comments

Comments
 (0)