Skip to content

Commit 869ac5c

Browse files
committed
fix(workflow): run ValidateImage on SBRefs too
1 parent b0c2b76 commit 869ac5c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fmriprep/workflows/bold/util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def init_bold_reference_wf(omp_nthreads, bold_file=None, pre_mask=False,
112112
inputnode.inputs.bold_file = bold_file
113113

114114
validate = pe.Node(ValidateImage(), name='validate', mem_gb=DEFAULT_MEMORY_MIN_GB)
115+
val_sbref = pe.Node(ValidateImage(), name='val_sbref')
115116

116117
gen_ref = pe.Node(EstimateReferenceImage(), name="gen_ref",
117118
mem_gb=1) # OE: 128x128x128x50 * 64 / 8 ~ 900MB.
@@ -123,8 +124,9 @@ def init_bold_reference_wf(omp_nthreads, bold_file=None, pre_mask=False,
123124
workflow.connect([
124125
(inputnode, enhance_and_skullstrip_bold_wf, [('bold_mask', 'inputnode.pre_mask')]),
125126
(inputnode, validate, [('bold_file', 'in_file')]),
126-
(inputnode, gen_ref, [('sbref_file', 'sbref_file')]),
127+
(inputnode, val_sbref, [('sbref_file', 'in_file')]),
127128
(validate, gen_ref, [('out_file', 'in_file')]),
129+
(val_sbref, gen_ref, [('out_file', 'sbref_file')]),
128130
(gen_ref, validate_ref, [('ref_image', 'in_file')]),
129131
(validate_ref, enhance_and_skullstrip_bold_wf, [('out_file', 'inputnode.in_file')]),
130132
(validate, outputnode, [('out_file', 'bold_file'),

0 commit comments

Comments
 (0)