INNER CODE UNIT · Python

_excepthook

open2c/pairtools · pairtools/cli/__init__.py:51

        def _excepthook(exc_type, value, tb):
            traceback.print_exception(exc_type, value, tb)
            print()
            pdb.pm()

        sys.excepthook = _excepthook

    if output_profile:
        import cProfile
        import atexit

        pr = cProfile.Profile()
        pr.enable()

        def _atexit_profile_hook():
            pr.disable()
            pr.dump_stats(output_profile)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…