@@ -762,7 +762,9 @@ def init_anat_fit_wf(
762
762
image_type = 'T1w' ,
763
763
name = 'anat_template_wf' ,
764
764
)
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
+ )
766
768
767
769
# fmt:off
768
770
workflow .connect ([
@@ -992,7 +994,9 @@ def init_anat_fit_wf(
992
994
omp_nthreads = omp_nthreads ,
993
995
templates = templates ,
994
996
)
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
+ )
996
1000
997
1001
# fmt:off
998
1002
workflow .connect ([
@@ -1075,7 +1079,7 @@ def init_anat_fit_wf(
1075
1079
1076
1080
fsnative_xfms = precomputed .get ('transforms' , {}).get ('fsnative' )
1077
1081
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' )
1079
1083
# fmt:off
1080
1084
workflow .connect ([
1081
1085
(sourcefile_buffer , ds_fs_registration_wf , [
@@ -1365,7 +1369,7 @@ def init_anat_template_wf(
1365
1369
longitudinal : bool ,
1366
1370
omp_nthreads : int ,
1367
1371
num_files : int ,
1368
- image_type : ty .Literal ['T1w' , 'T2w' ] = 'T1w' ,
1372
+ image_type : ty .Literal ['T1w' , 'T2w' ],
1369
1373
name : str = 'anat_template_wf' ,
1370
1374
):
1371
1375
"""
0 commit comments