Skip to content

Commit b71ddf3

Browse files
committed
ENH: Deprecate --debug with --sloppy
1 parent e706408 commit b71ddf3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

fmriprep/cli/run.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def get_parser():
8080

8181
g_perfm = parser.add_argument_group('Options to handle performance')
8282
g_perfm.add_argument('--debug', action='store_true', default=False,
83-
help='run debug version of workflow')
83+
help='DEPRECATED - Does not do what you want.')
8484
g_perfm.add_argument('--nthreads', '--n_cpus', '-n-cpus', action='store', type=int,
8585
help='maximum number of threads across all processes')
8686
g_perfm.add_argument('--omp-nthreads', action='store', type=int, default=0,
@@ -238,6 +238,9 @@ def get_parser():
238238
'the FMRIPREP developers. This information helps to '
239239
'improve FMRIPREP and provides an indicator of real '
240240
'world usage crucial for obtaining funding.')
241+
g_perfm.add_argument('--sloppy', action='store_true', default=False,
242+
help='Use low-quality tools for speed '
243+
'- TESTING ONLY')
241244

242245
return parser
243246

@@ -517,13 +520,15 @@ def build_workflow(opts, retval):
517520
'Option --output-grid-reference is deprecated, please use '
518521
'--template-resampling-grid')
519522
template_out_grid = template_out_grid or opts.output_grid_reference
523+
if opts.debug is not None:
524+
logger.warning('Option --debug is deprecated and has no effect')
520525

521526
retval['workflow'] = init_fmriprep_wf(
522527
subject_list=subject_list,
523528
task_id=opts.task_id,
524529
run_uuid=run_uuid,
525530
ignore=opts.ignore,
526-
debug=opts.debug,
531+
debug=opts.sloppy,
527532
low_mem=opts.low_mem,
528533
anat_only=opts.anat_only,
529534
longitudinal=opts.longitudinal,

0 commit comments

Comments
 (0)