Skip to content

Commit fe337a8

Browse files
authored
rf: Uncomplicate --fs-no-resume logic
1 parent 003a9d7 commit fe337a8

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/smriprep/workflows/surfaces.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -296,19 +296,15 @@ def init_surface_recon_wf(
296296
name='check_subjects_dir',
297297
)
298298

299-
# Pretend to be the autorecon1 node so fsnative2t1w_xfm gets run ASAP
300-
fs_base_inputs = autorecon1 = pe.Node(FreeSurferSource(), name='fs_base_inputs')
299+
# Hook up get_surfaces immediately,
300+
# pretend to be the autorecon1 node so fsnative2t1w_xfm gets run ASAP
301+
autorecon1 = get_surfaces
301302

302303
workflow.connect([
303304
(inputnode, check_subjects_dir, [
304305
('subjects_dir', 'subjects_dir'),
305306
('subject_id', 'subject_id'),
306307
]),
307-
(check_subjects_dir, fs_base_inputs, [
308-
('subjects_dir', 'subjects_dir'),
309-
('subject_id', 'subject_id'),
310-
]),
311-
# Generate mid-thickness surfaces
312308
(check_subjects_dir, get_surfaces, [
313309
('subjects_dir', 'subjects_dir'),
314310
('subject_id', 'subject_id'),

0 commit comments

Comments
 (0)