Skip to content

Commit a2d838d

Browse files
tsalooesteban
andcommitted
Apply suggestions from code review
Thanks @oesteban! Co-authored-by: Oscar Esteban <[email protected]>
1 parent c08127b commit a2d838d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

niworkflows/func/util.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def init_bold_reference_wf(
159159
)
160160

161161
gen_ref = pe.Node(
162-
EstimateReferenceImage(), name="gen_ref", mem_gb=1
162+
EstimateReferenceImage(multiecho=multiecho), name="gen_ref", mem_gb=1
163163
) # OE: 128x128x128x50 * 64 / 8 ~ 900MB.
164164
enhance_and_skullstrip_bold_wf = init_enhance_and_skullstrip_bold_wf(
165165
brainmask_thresh=brainmask_thresh,
@@ -185,6 +185,10 @@ def init_bold_reference_wf(
185185
(gen_ref, enhance_and_skullstrip_bold_wf, [
186186
("ref_image", "inputnode.in_file"),
187187
]),
188+
(validate, outputnode, [
189+
(("out_file", select_first), "bold_file"),
190+
("out_report", "validation_report"),
191+
]),
188192
(gen_ref, calc_dummy_scans, [("n_volumes_to_discard", "algo_dummy_scans")]),
189193
(calc_dummy_scans, outputnode, [("skip_vols_num", "skip_vols")]),
190194
(gen_ref, outputnode, [
@@ -201,14 +205,10 @@ def init_bold_reference_wf(
201205
if multiecho:
202206
workflow.connect([
203207
(inputnode, validate, [(("bold_file", ensure_list), "in_file")]),
204-
(validate, outputnode, [(("out_file", select_first), "bold_file"),
205-
("out_report", "validation_report")]),
206208
])
207209
else:
208210
workflow.connect([
209211
(inputnode, validate, [("bold_file", "in_file")]),
210-
(validate, outputnode, [("out_file", "bold_file"),
211-
("out_report", "validation_report")]),
212212
])
213213
# fmt: on
214214

0 commit comments

Comments
 (0)