Skip to content

Commit c5a853d

Browse files
committed
rename option to --fs-reuse-base
1 parent c7d2e36 commit c5a853d

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,10 +545,10 @@ jobs:
545545
path: /tmp/ds005/derivatives
546546
destination: fasttrack
547547
- run:
548-
name: Check fs-reuse-base using existing freesufer output
548+
name: Check fs-no-resume using existing freesufer output
549549
no_output_timeout: 5m
550550
command: |
551-
bash /tmp/src/smriprep/.circleci/ds005_run.sh --fs-reuse-base
551+
bash /tmp/src/smriprep/.circleci/ds005_run.sh --fs-no-resume
552552
- run:
553553
name: Clean working directory
554554
when: on_fail
@@ -558,10 +558,10 @@ jobs:
558558
-exec sh -c 'rm -f {}; touch {}' \;
559559
- store_artifacts:
560560
path: /tmp/ds005/work
561-
destination: fs_reuse_base
561+
destination: fs_no_resume
562562
- store_artifacts:
563563
path: /tmp/ds005/derivatives
564-
destination: fs_reuse_base
564+
destination: fs_no_resume
565565
ds054:
566566
<<: *machine_defaults
567567
environment:

smriprep/cli/run.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ def get_parser():
215215
'(default: OUTPUT_DIR/freesurfer)',
216216
)
217217
g_fs.add_argument(
218-
'--fs-reuse-base',
218+
'--fs-no-resume',
219219
action='store_true',
220-
dest='fs_reuse_base',
220+
dest='fs_no_resume',
221221
help='Reuse freesurfer base template (from longitudinal preprocessing)',
222222
)
223223
g_fs.add_argument(
@@ -613,7 +613,7 @@ def build_workflow(opts, retval):
613613
freesurfer=opts.run_reconall,
614614
fs_subjects_dir=opts.fs_subjects_dir,
615615
hires=opts.hires,
616-
fs_reuse_base=opts.fs_reuse_base,
616+
fs_no_resume=opts.fs_no_resume,
617617
layout=layout,
618618
longitudinal=opts.longitudinal,
619619
low_mem=opts.low_mem,

smriprep/workflows/anatomical.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def init_anat_preproc_wf(
111111
cifti_output: ty.Literal['91k', '170k', False] = False,
112112
name: str = 'anat_preproc_wf',
113113
skull_strip_fixed_seed: bool = False,
114-
fs_reuse_base: bool = False,
114+
fs_no_resume: bool = False,
115115
):
116116
"""
117117
Stage the anatomical preprocessing steps of *sMRIPrep*.
@@ -184,7 +184,7 @@ def init_anat_preproc_wf(
184184
Do not use a random seed for skull-stripping - will ensure
185185
run-to-run replicability when used with --omp-nthreads 1
186186
(default: ``False``).
187-
fs_reuse_base : bool
187+
fs_no_resume : bool
188188
Adjust pipeline to reuse base template
189189
of an existing longitudinal freesurfer output
190190
(default: ``False``).
@@ -280,7 +280,7 @@ def init_anat_preproc_wf(
280280
sloppy=sloppy,
281281
omp_nthreads=omp_nthreads,
282282
skull_strip_fixed_seed=skull_strip_fixed_seed,
283-
fs_reuse_base=fs_reuse_base,
283+
fs_no_resume=fs_no_resume,
284284
)
285285
template_iterator_wf = init_template_iterator_wf(spaces=spaces)
286286
ds_std_volumes_wf = init_ds_anat_volumes_wf(
@@ -464,7 +464,7 @@ def init_anat_fit_wf(
464464
sloppy: bool = False,
465465
name='anat_fit_wf',
466466
skull_strip_fixed_seed: bool = False,
467-
fs_reuse_base: bool = False,
467+
fs_no_resume: bool = False,
468468
):
469469
"""
470470
Stage the anatomical preprocessing steps of *sMRIPrep*.
@@ -1047,7 +1047,7 @@ def init_anat_fit_wf(
10471047
name='surface_recon_wf',
10481048
omp_nthreads=omp_nthreads,
10491049
hires=hires,
1050-
fs_reuse_base=fs_reuse_base,
1050+
fs_no_resume=fs_no_resume,
10511051
precomputed=precomputed,
10521052
)
10531053
if t2w or flair:

smriprep/workflows/base.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def init_smriprep_wf(
4646
freesurfer,
4747
fs_subjects_dir,
4848
hires,
49-
fs_reuse_base,
49+
fs_no_resume,
5050
layout,
5151
longitudinal,
5252
low_mem,
@@ -89,7 +89,7 @@ def init_smriprep_wf(
8989
freesurfer=True,
9090
fs_subjects_dir=None,
9191
hires=True,
92-
fs_reuse_base=False,
92+
fs_no_resume=False,
9393
layout=BIDSLayout('.'),
9494
longitudinal=False,
9595
low_mem=False,
@@ -180,7 +180,7 @@ def init_smriprep_wf(
180180
freesurfer=freesurfer,
181181
derivatives=derivatives,
182182
hires=hires,
183-
fs_reuse_base=fs_reuse_base,
183+
fs_no_resume=fs_no_resume,
184184
layout=layout,
185185
longitudinal=longitudinal,
186186
low_mem=low_mem,
@@ -217,7 +217,7 @@ def init_single_subject_wf(
217217
derivatives,
218218
freesurfer,
219219
hires,
220-
fs_reuse_base,
220+
fs_no_resume,
221221
layout,
222222
longitudinal,
223223
low_mem,
@@ -262,7 +262,7 @@ def init_single_subject_wf(
262262
freesurfer=True,
263263
derivatives=[],
264264
hires=True,
265-
fs_reuse_base=False,
265+
fs_no_resume=False,
266266
layout=BIDSLayout('.'),
267267
longitudinal=False,
268268
low_mem=False,
@@ -291,7 +291,7 @@ def init_single_subject_wf(
291291
Enable FreeSurfer surface reconstruction (may increase runtime)
292292
hires : :obj:`bool`
293293
Enable sub-millimeter preprocessing in FreeSurfer
294-
fs_reuse_base : bool
294+
fs_no_resume : bool
295295
Adjust pipeline to reuse base template
296296
of an existing longitudinal freesurfer output
297297
layout : BIDSLayout object
@@ -426,7 +426,7 @@ def init_single_subject_wf(
426426
precomputed=deriv_cache,
427427
freesurfer=freesurfer,
428428
hires=hires,
429-
fs_reuse_base=fs_reuse_base,
429+
fs_no_resume=fs_no_resume,
430430
longitudinal=longitudinal,
431431
msm_sulc=msm_sulc,
432432
name='anat_preproc_wf',

smriprep/workflows/surfaces.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def init_surface_recon_wf(
6464
*,
6565
omp_nthreads: int,
6666
hires: bool,
67-
fs_reuse_base: bool,
67+
fs_no_resume: bool,
6868
precomputed: dict,
6969
name='surface_recon_wf',
7070
):
@@ -133,7 +133,7 @@ def init_surface_recon_wf(
133133
wf = init_surface_recon_wf(
134134
omp_nthreads=1,
135135
hires=True,
136-
fs_reuse_base=False,
136+
fs_no_resume=False,
137137
precomputed={})
138138
139139
Parameters
@@ -142,7 +142,7 @@ def init_surface_recon_wf(
142142
Maximum number of threads an individual process may use
143143
hires : bool
144144
Enable sub-millimeter preprocessing in FreeSurfer
145-
fs_reuse_base : bool
145+
fs_no_resume : bool
146146
Adjust pipeline to reuse base template
147147
of an existing longitudinal freesurfer output
148148
@@ -246,7 +246,7 @@ def init_surface_recon_wf(
246246
name='sync',
247247
)
248248

249-
if not fs_reuse_base:
249+
if not fs_no_resume:
250250
recon_config = pe.Node(FSDetectInputs(hires_enabled=hires), name='recon_config')
251251

252252
fov_check = pe.Node(niu.Function(function=_check_cw256), name='fov_check')

0 commit comments

Comments
 (0)