@@ -1276,13 +1276,13 @@ def init_infant_anat_fit_wf(
12761276 (fsnative_buffer , gifti_surfaces_wf , [
12771277 ('fsnative2anat_xfm' , 'inputnode.fsnative2anat_xfm' ),
12781278 ]),
1279- (gifti_surfaces_wf , surfaces_buffer , [
1280- (f'outputnode.{ surf } ' , surf ) for surf in surfs
1281- ]),
12821279 (sourcefile_buffer , ds_surfaces_wf , [('anat_source_files' , 'inputnode.source_files' )]),
12831280 (gifti_surfaces_wf , ds_surfaces_wf , [
12841281 (f'outputnode.{ surf } ' , f'inputnode.{ surf } ' ) for surf in surfs
12851282 ]),
1283+ (ds_surfaces_wf , surfaces_buffer , [
1284+ (f'outputnode.{ surf } ' , surf ) for surf in surfs
1285+ ]),
12861286 ]) # fmt:skip
12871287 if spheres :
12881288 gifti_spheres_wf = init_gifti_surfaces_wf (
@@ -1300,13 +1300,13 @@ def init_infant_anat_fit_wf(
13001300 ('outputnode.subjects_dir' , 'inputnode.subjects_dir' ),
13011301 # No transform for spheres, following HCP pipelines' lead
13021302 ]),
1303- (gifti_spheres_wf , surfaces_buffer , [
1304- (f'outputnode.{ sphere } ' , sphere ) for sphere in spheres
1305- ]),
13061303 (sourcefile_buffer , ds_spheres_wf , [('anat_source_files' , 'inputnode.source_files' )]),
13071304 (gifti_spheres_wf , ds_spheres_wf , [
13081305 (f'outputnode.{ sphere } ' , f'inputnode.{ sphere } ' ) for sphere in spheres
13091306 ]),
1307+ (ds_spheres_wf , surfaces_buffer , [
1308+ (f'outputnode.{ sphere } ' , sphere ) for sphere in spheres
1309+ ]),
13101310 ]) # fmt:skip
13111311 metrics = [metric for metric in needed_metrics if metric not in found_surfs ]
13121312 if metrics :
@@ -1324,13 +1324,13 @@ def init_infant_anat_fit_wf(
13241324 ('outputnode.subject_id' , 'inputnode.subject_id' ),
13251325 ('outputnode.subjects_dir' , 'inputnode.subjects_dir' ),
13261326 ]),
1327- (gifti_morph_wf , surfaces_buffer , [
1328- (f'outputnode.{ metric } ' , metric ) for metric in metrics
1329- ]),
13301327 (sourcefile_buffer , ds_morph_wf , [('anat_source_files' , 'inputnode.source_files' )]),
13311328 (gifti_morph_wf , ds_morph_wf , [
13321329 (f'outputnode.{ metric } ' , f'inputnode.{ metric } ' ) for metric in metrics
13331330 ]),
1331+ (ds_morph_wf , surfaces_buffer , [
1332+ (f'outputnode.{ metric } ' , metric ) for metric in metrics
1333+ ]),
13341334 ]) # fmt:skip
13351335
13361336 if 'anat_ribbon' not in precomputed :
@@ -2232,13 +2232,13 @@ def init_infant_single_anat_fit_wf(
22322232 (fsnative_buffer , gifti_surfaces_wf , [
22332233 ('fsnative2anat_xfm' , 'inputnode.fsnative2anat_xfm' ),
22342234 ]),
2235- (gifti_surfaces_wf , surfaces_buffer , [
2236- (f'outputnode.{ surf } ' , surf ) for surf in surfs
2237- ]),
22382235 (sourcefile_buffer , ds_surfaces_wf , [('anat_source_files' , 'inputnode.source_files' )]),
22392236 (gifti_surfaces_wf , ds_surfaces_wf , [
22402237 (f'outputnode.{ surf } ' , f'inputnode.{ surf } ' ) for surf in surfs
22412238 ]),
2239+ (ds_surfaces_wf , surfaces_buffer , [
2240+ (f'outputnode.{ surf } ' , surf ) for surf in surfs
2241+ ]),
22422242 ]) # fmt:skip
22432243 if spheres :
22442244 gifti_spheres_wf = init_gifti_surfaces_wf (
@@ -2256,13 +2256,13 @@ def init_infant_single_anat_fit_wf(
22562256 ('outputnode.subjects_dir' , 'inputnode.subjects_dir' ),
22572257 # No transform for spheres, following HCP pipelines' lead
22582258 ]),
2259- (gifti_spheres_wf , surfaces_buffer , [
2260- (f'outputnode.{ sphere } ' , sphere ) for sphere in spheres
2261- ]),
22622259 (sourcefile_buffer , ds_spheres_wf , [('anat_source_files' , 'inputnode.source_files' )]),
22632260 (gifti_spheres_wf , ds_spheres_wf , [
22642261 (f'outputnode.{ sphere } ' , f'inputnode.{ sphere } ' ) for sphere in spheres
22652262 ]),
2263+ (ds_spheres_wf , surfaces_buffer , [
2264+ (f'outputnode.{ sphere } ' , sphere ) for sphere in spheres
2265+ ]),
22662266 ]) # fmt:skip
22672267 metrics = [metric for metric in needed_metrics if metric not in found_surfs ]
22682268 if metrics :
@@ -2280,13 +2280,13 @@ def init_infant_single_anat_fit_wf(
22802280 ('outputnode.subject_id' , 'inputnode.subject_id' ),
22812281 ('outputnode.subjects_dir' , 'inputnode.subjects_dir' ),
22822282 ]),
2283- (gifti_morph_wf , surfaces_buffer , [
2284- (f'outputnode.{ metric } ' , metric ) for metric in metrics
2285- ]),
22862283 (sourcefile_buffer , ds_morph_wf , [('anat_source_files' , 'inputnode.source_files' )]),
22872284 (gifti_morph_wf , ds_morph_wf , [
22882285 (f'outputnode.{ metric } ' , f'inputnode.{ metric } ' ) for metric in metrics
22892286 ]),
2287+ (ds_morph_wf , surfaces_buffer , [
2288+ (f'outputnode.{ metric } ' , metric ) for metric in metrics
2289+ ]),
22902290 ]) # fmt:skip
22912291
22922292 if 'anat_ribbon' not in precomputed :
0 commit comments