Skip to content

Commit fb61b2d

Browse files
committed
Style stuff.
1 parent e94c744 commit fb61b2d

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

xcp_d/workflows/anatomical/plotting.py

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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

xcp_d/workflows/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ def init_single_subject_wf(subject_id: str):
321321
('lh_subject_sphere', 'inputnode.lh_subject_sphere'),
322322
('rh_subject_sphere', 'inputnode.rh_subject_sphere'),
323323
('anat_to_template_xfm', 'inputnode.anat_to_template_xfm'),
324-
('template_to_anat_xfm', 'inputnode.template_to_anat_xfm'),
325324
]),
326325
]) # fmt:skip
327326

0 commit comments

Comments
 (0)