niworkflows.utils.debug module

niworkflows.utils.debug.is_interactive()[source]

Return True if all in/outs are tty

niworkflows.utils.debug.setup_exceptionhook(ipython=False)[source]

Overloads default sys.excepthook with our exceptionhook handler. If interactive, our exceptionhook handler will invoke pdb.post_mortem; if not interactive, then invokes default handler.