Skip to content

Commit ca32147

Browse files
committed
remove one branch
1 parent 9503750 commit ca32147

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

fmriprep/workflows/bold/util.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def init_bold_reference_wf(omp_nthreads, bold_file=None, pre_mask=False,
120120
omp_nthreads=omp_nthreads, pre_mask=pre_mask)
121121

122122
workflow.connect([
123+
(inputnode, enhance_and_skullstrip_bold_wf, [('bold_mask', 'inputnode.pre_mask')]),
123124
(inputnode, validate, [('bold_file', 'in_file')]),
124125
(inputnode, gen_ref, [('sbref_file', 'sbref_file')]),
125126
(validate, gen_ref, [('out_file', 'in_file')]),
@@ -135,11 +136,6 @@ def init_bold_reference_wf(omp_nthreads, bold_file=None, pre_mask=False,
135136
('outputnode.skull_stripped_file', 'ref_image_brain')]),
136137
])
137138

138-
if pre_mask:
139-
workflow.connect([
140-
(inputnode, enhance_and_skullstrip_bold_wf, [('bold_mask', 'inputnode.pre_mask')]),
141-
])
142-
143139
if gen_report:
144140
mask_reportlet = pe.Node(SimpleShowMaskRPT(), name='mask_reportlet')
145141
workflow.connect([

0 commit comments

Comments
 (0)