Skip to content

Commit 6e2c5ca

Browse files
committed
FIX: Pass unused argument t_masks when using sbref
1 parent a97f99f commit 6e2c5ca

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

nibabies/workflows/bold/boldref.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def init_infant_epi_reference_wf(
2121
----------
2222
omp_nthreads
2323
Maximum number of threads an individual process may use
24-
has_sbref
24+
is_sbref
2525
A single-band reference is provided.
2626
start_frame
2727
BOLD frame to start creating the reference map from. Any earlier frames are discarded.
@@ -57,7 +57,7 @@ def init_infant_epi_reference_wf(
5757
name='outputnode',
5858
)
5959

60-
epi_reference_wf = init_epi_reference_wf(omp_nthreads)
60+
epi_reference_wf = init_epi_reference_wf(omp_nthreads, auto_bold_nss=False)
6161

6262
boldref_mask = pe.Node(BrainExtraction(), name='boldref_mask')
6363

@@ -81,6 +81,10 @@ def init_infant_epi_reference_wf(
8181
(select_frames, epi_reference_wf, [('t_masks', 'inputnode.t_masks')]),
8282
])
8383
# fmt:on
84+
else:
85+
# Won't be used but needed to placate iternode
86+
# To consider: Add a check to ensure this is a 3D file
87+
epi_reference_wf.inputs.inputnode.t_masks = [True]
8488
return wf
8589

8690

0 commit comments

Comments
 (0)