File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -533,9 +533,16 @@ def _bids_filter(value):
533533 "improve FMRIPREP and provides an indicator of real "
534534 "world usage crucial for obtaining funding." ,
535535 )
536+ g_other .add_argument (
537+ "--debug" ,
538+ action = "store" ,
539+ nargs = "+" ,
540+ choices = config .DEBUG_MODES + ("all" ,),
541+ help = "Debug mode(s) to enable. 'all' is alias for all available modes." ,
542+ )
543+
536544 g_other .add_argument (
537545 "--sloppy" ,
538- dest = "debug" ,
539546 action = "store_true" ,
540547 default = False ,
541548 help = "Use low-quality tools for speed - TESTING ONLY" ,
Original file line number Diff line number Diff line change 187187 pass
188188
189189
190+ # Debug modes are names that influence the exposure of internal details to
191+ # the user, either through additional derivatives or increased verbosity
192+ DEBUG_MODES = ("compcor" ,)
193+
194+
190195class _Config :
191196 """An abstract class forbidding instantiation."""
192197
@@ -359,8 +364,10 @@ class execution(_Config):
359364 """A dictionary of BIDS selection filters."""
360365 boilerplate_only = False
361366 """Only generate a boilerplate."""
362- debug = False
367+ sloppy = False
363368 """Run in sloppy mode (meaning, suboptimal parameters that minimize run-time)."""
369+ debug = []
370+ """Debug mode(s)."""
364371 echo_idx = None
365372 """Select a particular echo for multi-echo EPI datasets."""
366373 fs_license_file = _fs_license
@@ -456,6 +463,9 @@ def init(cls):
456463 for k , v in filters .items ()
457464 }
458465
466+ if "all" in cls .debug :
467+ cls .debug = list (DEBUG_MODES )
468+
459469
460470# These variables are not necessary anymore
461471del _fs_license
You can’t perform that action at this time.
0 commit comments