Skip to content

Commit 2320c2a

Browse files
committed
conform with new style rules
1 parent 0767f70 commit 2320c2a

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

smriprep/cli/run.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,10 @@ def get_parser():
215215
'(default: OUTPUT_DIR/freesurfer)',
216216
)
217217
g_fs.add_argument(
218-
"--fs-reuse-base",
218+
'--fs-reuse-base',
219219
action='store_true',
220220
dest='fs_reuse_base',
221-
help='Reuse freesurfer base template'
222-
'(from longitudinal preprocessing)',
221+
help='Reuse freesurfer base template (from longitudinal preprocessing)',
223222
)
224223
g_fs.add_argument(
225224
'--cifti-output',

smriprep/workflows/surfaces.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -247,22 +247,21 @@ def init_surface_recon_wf(
247247
)
248248

249249
if not fs_reuse_base:
250+
recon_config = pe.Node(FSDetectInputs(hires_enabled=hires), name='recon_config')
250251

251-
recon_config = pe.Node(FSDetectInputs(hires_enabled=hires), name="recon_config")
252-
253-
fov_check = pe.Node(niu.Function(function=_check_cw256), name="fov_check")
252+
fov_check = pe.Node(niu.Function(function=_check_cw256), name='fov_check')
254253
fov_check.inputs.default_flags = ['-noskullstrip', '-noT2pial', '-noFLAIRpial']
255254

256255
autorecon1 = pe.Node(
257-
ReconAll(directive="autorecon1", openmp=omp_nthreads),
258-
name="autorecon1",
256+
ReconAll(directive='autorecon1', openmp=omp_nthreads),
257+
name='autorecon1',
259258
n_procs=omp_nthreads,
260259
mem_gb=5,
261260
)
262261
autorecon1.interface._can_resume = False
263262
autorecon1.interface._always_run = True
264263

265-
skull_strip_extern = pe.Node(FSInjectBrainExtracted(), name="skull_strip_extern")
264+
skull_strip_extern = pe.Node(FSInjectBrainExtracted(), name='skull_strip_extern')
266265

267266
autorecon_resume_wf = init_autorecon_resume_wf(omp_nthreads=omp_nthreads)
268267

@@ -303,10 +302,7 @@ def init_surface_recon_wf(
303302
])
304303
# fmt:on
305304
else:
306-
fs_base_inputs = autorecon1 = pe.Node(
307-
nio.FreeSurferSource(),
308-
name='fs_base_inputs'
309-
)
305+
fs_base_inputs = autorecon1 = pe.Node(nio.FreeSurferSource(), name='fs_base_inputs')
310306

311307
# fmt:off
312308
workflow.connect([

0 commit comments

Comments
 (0)