Skip to content

Commit 1639272

Browse files
committed
FIX: Calculate reference from single EPI
1 parent 15d8cae commit 1639272

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nibabies/workflows/bold/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,9 @@ def init_func_preproc_wf(bold_file, has_fieldmap=False, existing_derivatives=Non
580580

581581
# Create a reference image for the bold run
582582
initial_boldref_wf = init_infant_epi_reference_wf(omp_nthreads, is_sbref=bool(sbref_files))
583-
initial_boldref_wf.inputs.inputnode.epi_file = pop_file(sbref_files) or pop_file(bold_file)
583+
initial_boldref_wf.inputs.inputnode.epi_file = (
584+
pop_file(sbref_files) if sbref_files else ref_file
585+
)
584586

585587
# This final boldref will be calculated after bold_bold_trans_wf, which includes one or more:
586588
# HMC (head motion correction)

0 commit comments

Comments
 (0)