@@ -314,6 +314,7 @@ def init_itk_warp_gifti_surface_wf(name='itk_warp_gifti_surface_wf'):
314314
315315 with mock_config():
316316 wf = init_itk_warp_gifti_surface_wf()
317+
317318 Parameters
318319 ----------
319320 %(name)s
@@ -330,7 +331,6 @@ def init_itk_warp_gifti_surface_wf(name='itk_warp_gifti_surface_wf'):
330331 warped_surf_gii
331332 Gifti file where the transform in ``itk_warp_file`` has been applied
332333 to the vertices in ``native_surf_gii``.
333-
334334 """
335335 workflow = Workflow (name = name )
336336
@@ -352,27 +352,24 @@ def init_itk_warp_gifti_surface_wf(name='itk_warp_gifti_surface_wf'):
352352 name = 'inputnode' ,
353353 )
354354
355- convert_to_csv = pe .Node (
356- GiftiToCSV (itk_lps = True ), name = 'convert_to_csv'
357- )
355+ convert_to_csv = pe .Node (GiftiToCSV (itk_lps = True ), name = 'convert_to_csv' )
356+ workflow .connect ([(inputnode , convert_to_csv , [('native_surf_gii' , 'in_file' )])])
358357
359358 transform_vertices = pe .Node (
360359 ApplyTransformsToPoints (dimension = 3 ),
361360 name = 'transform_vertices' ,
362361 )
362+ workflow .connect ([
363+ (inputnode , transform_vertices , [('itk_warp_file' , 'transforms' )]),
364+ (convert_to_csv , transform_vertices , [('out_file' , 'input_file' )]),
365+ ]) # fmt:skip
363366
364367 csv_to_gifti = pe .Node (CSVToGifti (itk_lps = True ), name = 'csv_to_gifti' )
365-
366- workflow .connect (
367- [
368- (inputnode , convert_to_csv , [('native_surf_gii' , 'in_file' )]),
369- (inputnode , transform_vertices , [('itk_warp_file' , 'transforms' )]),
370- (inputnode , csv_to_gifti , [('native_surf_gii' , 'gii_file' )]),
371- (convert_to_csv , transform_vertices , [('out_file' , 'input_file' )]),
372- (transform_vertices , csv_to_gifti , [('output_file' , 'in_file' )]),
373- (csv_to_gifti , outputnode , [('out_file' , 'warped_surf_gii' )]),
374- ]
375- )
368+ workflow .connect ([
369+ (inputnode , csv_to_gifti , [('native_surf_gii' , 'gii_file' )]),
370+ (transform_vertices , csv_to_gifti , [('output_file' , 'in_file' )]),
371+ (csv_to_gifti , outputnode , [('out_file' , 'warped_surf_gii' )]),
372+ ]) # fmt:skip
376373
377374 return workflow
378375
0 commit comments