@@ -3116,7 +3116,9 @@ def overwrite_transform_anat_to_template(wf, cfg, strat_pool, pipe_num, opt=None
31163116 merge_xfms , "merged_file" , fsl_apply_warp_t1_to_template , "field_file"
31173117 )
31183118
3119- concat_match_fov = pe .Node (interface = fsl .ConvertWarp (), name = f"concat_match_fov_{ pipe_num } " )
3119+ concat_match_fov = pe .Node (
3120+ interface = fsl .ConvertWarp (), name = f"concat_match_fov_{ pipe_num } "
3121+ )
31203122 concat_match_fov .inputs .relwarp = True
31213123
31223124 wf .connect (match_fovs_T1w , "out_matrix_file" , concat_match_fov , "premat" )
@@ -3126,8 +3128,7 @@ def overwrite_transform_anat_to_template(wf, cfg, strat_pool, pipe_num, opt=None
31263128
31273129 # Node to concatenate the inverse warp with the FOV matrix
31283130 concat_match_fov_inv = pe .Node (
3129- interface = fsl .ConvertWarp (),
3130- name = f"concat_match_fov_inv_{ pipe_num } "
3131+ interface = fsl .ConvertWarp (), name = f"concat_match_fov_inv_{ pipe_num } "
31313132 )
31323133 concat_match_fov_inv .inputs .relwarp = True
31333134
@@ -3146,15 +3147,16 @@ def overwrite_transform_anat_to_template(wf, cfg, strat_pool, pipe_num, opt=None
31463147 # TODO connect T1wRestoreBrain, check T1wRestoreBrain quality
31473148 node , out = strat_pool .get_data (["desc-restore-brain_T1w" , "desc-preproc_T1w" ])
31483149
3149- wf .connect (
3150- node , out , fsl_apply_warp_t1_brain_to_template , "in_file"
3151- )
3150+ wf .connect (node , out , fsl_apply_warp_t1_brain_to_template , "in_file" )
31523151
31533152 node , out = strat_pool .get_data ("T1w-brain-template" )
31543153 wf .connect (node , out , fsl_apply_warp_t1_brain_to_template , "ref_file" )
31553154
31563155 wf .connect (
3157- concat_match_fov , "out_file" , fsl_apply_warp_t1_brain_to_template , "field_file"
3156+ concat_match_fov ,
3157+ "out_file" ,
3158+ fsl_apply_warp_t1_brain_to_template ,
3159+ "field_file" ,
31583160 )
31593161
31603162 fsl_apply_warp_t1_brain_mask_to_template = pe .Node (
@@ -3166,9 +3168,7 @@ def overwrite_transform_anat_to_template(wf, cfg, strat_pool, pipe_num, opt=None
31663168
31673169 node , out = strat_pool .get_data ("space-T1w_desc-brain_mask" )
31683170
3169- wf .connect (
3170- node , out , fsl_apply_warp_t1_brain_mask_to_template , "in_file"
3171- )
3171+ wf .connect (node , out , fsl_apply_warp_t1_brain_mask_to_template , "in_file" )
31723172
31733173 node , out = strat_pool .get_data ("T1w-brain-template-mask" )
31743174 wf .connect (node , out , fsl_apply_warp_t1_brain_mask_to_template , "ref_file" )
0 commit comments