Skip to content

Commit

Permalink
CLI: Make --debug flag avoid deleting unnecessary outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 8, 2022
1 parent e8b29db commit ed21f2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fitlins/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def get_parser():

def run_fitlins(argv=None):
import re
import nipype
from nipype import logging as nlogging

warnings.showwarning = _warn_redirect
Expand All @@ -279,6 +280,9 @@ def run_fitlins(argv=None):
for ign in opts.ignore or ()
]

if opts.debug:
nipype.config.set('execution', 'remove_unnecessary_outputs', False)

log_level = 25 + 5 * (opts.quiet - opts.verbose)
logger.setLevel(log_level)
nlogging.getLogger('nipype.workflow').setLevel(log_level)
Expand Down

0 comments on commit ed21f2a

Please sign in to comment.