Skip to content

Commit 0f857e8

Browse files
committed
rf: Combine connect calls
1 parent 1bcd541 commit 0f857e8

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/smriprep/workflows/anatomical.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,20 +1352,18 @@ def init_anat_fit_wf(
13521352
LOGGER.info('ANAT Stage 11: Creating cortical surface mask')
13531353

13541354
cortex_masks_wf = init_cortex_masks_wf()
1355-
workflow.connect([
1356-
(surfaces_buffer, cortex_masks_wf, [
1357-
('midthickness', 'inputnode.midthickness'),
1358-
('thickness', 'inputnode.thickness'),
1359-
]),
1360-
]) # fmt:skip
1361-
13621355
ds_cortex_masks_wf = init_ds_surface_masks_wf(
13631356
output_dir=output_dir,
13641357
mask_type='cortex',
13651358
name='ds_cortex_masks_wf',
13661359
entities={'extension': '.label.gii'},
13671360
)
1361+
13681362
workflow.connect([
1363+
(surfaces_buffer, cortex_masks_wf, [
1364+
('midthickness', 'inputnode.midthickness'),
1365+
('thickness', 'inputnode.thickness'),
1366+
]),
13691367
(cortex_masks_wf, ds_cortex_masks_wf, [
13701368
('outputnode.cortex_masks', 'inputnode.mask_files'),
13711369
('outputnode.source_files', 'inputnode.source_files'),

0 commit comments

Comments
 (0)