Skip to content

Commit ba4611b

Browse files
authored
Apply suggestions from code review
1 parent f60c0f1 commit ba4611b

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

smriprep/workflows/surfaces.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ def init_surface_recon_wf(
248248
)
249249

250250
if not fs_no_resume:
251-
# fmt:off
252251
workflow.connect([
253252
# Configuration
254253
(inputnode, recon_config, [('t1w', 't1w_list'),
@@ -282,15 +281,16 @@ def init_surface_recon_wf(
282281
('outputnode.subjects_dir', 'base_directory'),
283282
('outputnode.subject_id', 'container'),
284283
]),
285-
])
286-
# fmt:on
284+
]) # fmt:skip
287285
else:
286+
# Pretend to be the autorecon1 node so fsnative2t1w_xfm gets run ASAP
288287
fs_base_inputs = autorecon1 = pe.Node(nio.FreeSurferSource(), name='fs_base_inputs')
289288

290-
# fmt:off
291289
workflow.connect([
292-
(inputnode, fs_base_inputs, [('subjects_dir', 'subjects_dir'),
293-
('subject_id', 'subject_id')]),
290+
(inputnode, fs_base_inputs, [
291+
('subjects_dir', 'subjects_dir'),
292+
('subject_id', 'subject_id'),
293+
]),
294294
# Generate mid-thickness surfaces
295295
(inputnode, get_surfaces, [
296296
('subjects_dir', 'subjects_dir'),
@@ -300,10 +300,8 @@ def init_surface_recon_wf(
300300
('subjects_dir', 'base_directory'),
301301
('subject_id', 'container'),
302302
]),
303-
])
304-
# fmt:on
303+
]) # fmt:skip
305304

306-
# fmt:off
307305
workflow.connect([
308306
(get_surfaces, midthickness, [
309307
('white', 'in_file'),

0 commit comments

Comments
 (0)