Skip to content

Commit b71a9d3

Browse files
authored
Merge pull request #1347 from effigies/fix/debug_flags
ENH: Deprecate --debug with --sloppy
2 parents 0d582f6 + 666b306 commit b71a9d3

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

.circleci/config.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ jobs:
388388
-e FMRIPREP_DEV 1 -u $(id -u) \
389389
--config $PWD/nipype.cfg -w /tmp/ds005/work \
390390
/tmp/data/ds005 /tmp/ds005/derivatives participant \
391-
--debug --write-graph --mem_mb 4096 \
391+
--sloppy --write-graph --mem_mb 4096 \
392392
--nthreads 2 --anat-only -vv
393393
- save_cache:
394394
key: ds005-anat-v9-{{ .Branch }}-{{ epoch }}
@@ -408,7 +408,7 @@ jobs:
408408
-e FMRIPREP_DEV 1 -u $(id -u) \
409409
--config $PWD/nipype.cfg -w /tmp/ds005/work \
410410
/tmp/data/ds005 /tmp/ds005/derivatives participant \
411-
--debug --write-graph --use-syn-sdc --mem_mb 4096 \
411+
--sloppy --write-graph --use-syn-sdc --mem_mb 4096 \
412412
--ignore-aroma-denoising-errors --use-aroma \
413413
--output-space T1w template fsaverage5 \
414414
--template-resampling-grid native \
@@ -435,7 +435,7 @@ jobs:
435435
-e FMRIPREP_DEV 1 -u $(id -u) \
436436
--config $PWD/nipype.cfg -w /tmp/ds005/work \
437437
/tmp/data/ds005 /tmp/ds005/derivatives_partial participant \
438-
--debug --write-graph --use-syn-sdc --mem_mb 4096 \
438+
--sloppy --write-graph --use-syn-sdc --mem_mb 4096 \
439439
--output-space T1w template fsaverage5 \
440440
--ignore-aroma-denoising-errors --use-aroma \
441441
--template-resampling-grid native \
@@ -517,7 +517,7 @@ jobs:
517517
-e FMRIPREP_DEV 1 \
518518
--config $PWD/nipype.cfg -w /tmp/ds054/work \
519519
/tmp/data/ds054 /tmp/ds054/derivatives participant \
520-
--fs-no-reconall --debug --write-graph \
520+
--fs-no-reconall --sloppy --write-graph \
521521
--mem_mb 4096 --nthreads 2 --anat-only -vv
522522
- save_cache:
523523
key: ds054-anat-v7-{{ .Branch }}-{{ epoch }}
@@ -537,7 +537,7 @@ jobs:
537537
-e FMRIPREP_DEV 1 \
538538
--config $PWD/nipype.cfg -w /tmp/ds054/work \
539539
/tmp/data/ds054 /tmp/ds054/derivatives participant \
540-
--fs-no-reconall --debug \
540+
--fs-no-reconall --sloppy \
541541
--output-space T1w template \
542542
--template-resampling-grid 2mm \
543543
--mem_mb 4096 --nthreads 2 -vv
@@ -562,7 +562,7 @@ jobs:
562562
-e FMRIPREP_DEV 1 \
563563
--config $PWD/nipype.cfg -w /tmp/ds054/work \
564564
/tmp/data/ds054 /tmp/ds054/derivatives participant \
565-
--fs-no-reconall --debug --write-graph \
565+
--fs-no-reconall --sloppy --write-graph \
566566
--output-space T1w template \
567567
--template-resampling-grid 2mm \
568568
--reports-only --run-uuid $UUID
@@ -633,7 +633,7 @@ jobs:
633633
-e FMRIPREP_DEV 1 \
634634
--config $PWD/nipype.cfg -w /tmp/ds210/work \
635635
/tmp/data/ds210 /tmp/ds210/derivatives participant \
636-
--fs-no-reconall --debug --write-graph \
636+
--fs-no-reconall --sloppy --write-graph \
637637
--mem_mb 4096 --nthreads 2 --anat-only -vv
638638
- save_cache:
639639
key: ds210-anat-v4-{{ epoch }}
@@ -651,7 +651,7 @@ jobs:
651651
/tmp/data/ds210 /tmp/ds210/derivatives participant \
652652
--fs-no-reconall --t2s-coreg --use-syn-sdc \
653653
--template-resampling-grid native \
654-
--debug --write-graph --mem_mb 4096 --nthreads 2 -vv
654+
--sloppy --write-graph --mem_mb 4096 --nthreads 2 -vv
655655
- run:
656656
name: Checking outputs of fMRIPrep
657657
command: |

fmriprep/cli/run.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ def get_parser():
7979
help='select a specific task to be processed')
8080

8181
g_perfm = parser.add_argument_group('Options to handle performance')
82-
g_perfm.add_argument('--debug', action='store_true', default=False,
83-
help='run debug version of workflow')
8482
g_perfm.add_argument('--nthreads', '--n_cpus', '-n-cpus', action='store', type=int,
8583
help='maximum number of threads across all processes')
8684
g_perfm.add_argument('--omp-nthreads', action='store', type=int, default=0,
@@ -103,6 +101,8 @@ def get_parser():
103101
'signal')
104102
g_perfm.add_argument("-v", "--verbose", dest="verbose_count", action="count", default=0,
105103
help="increases log verbosity for each occurence, debug level is -vvv")
104+
g_perfm.add_argument('--debug', action='store_true', default=False,
105+
help='DEPRECATED - Does not do what you want.')
106106

107107
g_conf = parser.add_argument_group('Workflow configuration')
108108
g_conf.add_argument(
@@ -238,6 +238,8 @@ 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_other.add_argument('--sloppy', action='store_true', default=False,
242+
help='Use low-quality tools for speed - TESTING ONLY')
241243

242244
return parser
243245

@@ -517,13 +519,15 @@ def build_workflow(opts, retval):
517519
'Option --output-grid-reference is deprecated, please use '
518520
'--template-resampling-grid')
519521
template_out_grid = template_out_grid or opts.output_grid_reference
522+
if opts.debug is not None:
523+
logger.warning('Option --debug is deprecated and has no effect')
520524

521525
retval['workflow'] = init_fmriprep_wf(
522526
subject_list=subject_list,
523527
task_id=opts.task_id,
524528
run_uuid=run_uuid,
525529
ignore=opts.ignore,
526-
debug=opts.debug,
530+
debug=opts.sloppy,
527531
low_mem=opts.low_mem,
528532
anat_only=opts.anat_only,
529533
longitudinal=opts.longitudinal,

0 commit comments

Comments
 (0)