Skip to content

Commit d07d72d

Browse files
committed
fix(workflow): remove extra validation node, as now it is done on the SBRef conditionally before generating the reference
1 parent 54e336c commit d07d72d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

fmriprep/workflows/bold/util.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ def init_bold_reference_wf(omp_nthreads, bold_file=None, pre_mask=False,
115115

116116
gen_ref = pe.Node(EstimateReferenceImage(), name="gen_ref",
117117
mem_gb=1) # OE: 128x128x128x50 * 64 / 8 ~ 900MB.
118-
# Re-run validation; no effect if no sbref; otherwise apply same validation to sbref as bold
119-
validate_ref = pe.Node(ValidateImage(), name='validate_ref', mem_gb=DEFAULT_MEMORY_MIN_GB)
120118
enhance_and_skullstrip_bold_wf = init_enhance_and_skullstrip_bold_wf(
121119
omp_nthreads=omp_nthreads, pre_mask=pre_mask)
122120

@@ -125,12 +123,11 @@ def init_bold_reference_wf(omp_nthreads, bold_file=None, pre_mask=False,
125123
(inputnode, validate, [('bold_file', 'in_file')]),
126124
(inputnode, gen_ref, [('sbref_file', 'sbref_file')]),
127125
(validate, gen_ref, [('out_file', 'in_file')]),
128-
(gen_ref, validate_ref, [('ref_image', 'in_file')]),
129-
(validate_ref, enhance_and_skullstrip_bold_wf, [('out_file', 'inputnode.in_file')]),
126+
(gen_ref, enhance_and_skullstrip_bold_wf, [('ref_image', 'inputnode.in_file')]),
130127
(validate, outputnode, [('out_file', 'bold_file'),
131128
('out_report', 'validation_report')]),
132129
(gen_ref, outputnode, [('n_volumes_to_discard', 'skip_vols')]),
133-
(validate_ref, outputnode, [('out_file', 'raw_ref_image')]),
130+
(gen_ref, outputnode, [('ref_image', 'raw_ref_image')]),
134131
(enhance_and_skullstrip_bold_wf, outputnode, [
135132
('outputnode.bias_corrected_file', 'ref_image'),
136133
('outputnode.mask_file', 'bold_mask'),

0 commit comments

Comments
 (0)