Skip to content

Commit 35732c9

Browse files
tsaloeffigies
authored andcommitted
Consolidate sbref lines.
1 parent abe9f92 commit 35732c9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

fmriprep/workflows/bold/base.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,6 @@ def init_func_preproc_wf(bold_file):
227227
't1w2fsnative_xfm', 'fsnative2t1w_xfm']),
228228
name='inputnode')
229229
inputnode.inputs.bold_file = bold_file
230-
if sbref_files is not None:
231-
from niworkflows.interfaces.images import ValidateImage
232-
val_sbref = pe.MapNode(ValidateImage(), name='val_sbref',
233-
iterfield=['in_file'])
234-
val_sbref.inputs.in_file = sbref_files
235230

236231
outputnode = pe.Node(niu.IdentityInterface(
237232
fields=['bold_t1', 'bold_t1_ref', 'bold_mask_t1', 'bold_aseg_t1', 'bold_aparc_t1',
@@ -294,6 +289,10 @@ def init_func_preproc_wf(bold_file):
294289
bold_reference_wf = init_bold_reference_wf(omp_nthreads=omp_nthreads)
295290
bold_reference_wf.inputs.inputnode.dummy_scans = config.workflow.dummy_scans
296291
if sbref_files is not None:
292+
from niworkflows.interfaces.images import ValidateImage
293+
val_sbref = pe.MapNode(ValidateImage(), name='val_sbref',
294+
iterfield=['in_file'])
295+
val_sbref.inputs.in_file = sbref_files
297296
workflow.connect([
298297
(val_sbref, bold_reference_wf, [('out_file', 'inputnode.sbref_file')]),
299298
])

0 commit comments

Comments
 (0)