@@ -762,7 +762,9 @@ def init_anat_fit_wf(
762762 image_type = 'T1w' ,
763763 name = 'anat_template_wf' ,
764764 )
765- ds_template_wf = init_ds_template_wf (output_dir = output_dir , num_anat = num_t1w )
765+ ds_template_wf = init_ds_template_wf (
766+ output_dir = output_dir , num_anat = num_t1w , image_type = 'T1w'
767+ )
766768
767769 # fmt:off
768770 workflow .connect ([
@@ -992,7 +994,9 @@ def init_anat_fit_wf(
992994 omp_nthreads = omp_nthreads ,
993995 templates = templates ,
994996 )
995- ds_template_registration_wf = init_ds_template_registration_wf (output_dir = output_dir )
997+ ds_template_registration_wf = init_ds_template_registration_wf (
998+ output_dir = output_dir , image_type = 'T1w'
999+ )
9961000
9971001 # fmt:off
9981002 workflow .connect ([
@@ -1075,7 +1079,7 @@ def init_anat_fit_wf(
10751079
10761080 fsnative_xfms = precomputed .get ('transforms' , {}).get ('fsnative' )
10771081 if not fsnative_xfms :
1078- ds_fs_registration_wf = init_ds_fs_registration_wf (output_dir = output_dir )
1082+ ds_fs_registration_wf = init_ds_fs_registration_wf (output_dir = output_dir , image_type = 'T1w' )
10791083 # fmt:off
10801084 workflow .connect ([
10811085 (sourcefile_buffer , ds_fs_registration_wf , [
@@ -1365,7 +1369,7 @@ def init_anat_template_wf(
13651369 longitudinal : bool ,
13661370 omp_nthreads : int ,
13671371 num_files : int ,
1368- image_type : ty .Literal ['T1w' , 'T2w' ] = 'T1w' ,
1372+ image_type : ty .Literal ['T1w' , 'T2w' ],
13691373 name : str = 'anat_template_wf' ,
13701374):
13711375 """
0 commit comments