We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec28db commit 4ebefdcCopy full SHA for 4ebefdc
reasoning/util.py
@@ -1,5 +1,4 @@
1
import os
2
-import sys
3
import time
4
import logging
5
import argparse
@@ -133,20 +132,3 @@ def detect_variables(cfg_file):
133
132
ast = env.parse(raw)
134
vars = meta.find_undeclared_variables(ast)
135
return vars
136
-
137
138
-class DebugHook:
139
- instance = None
140
141
- def __call__(self, *args, **kwargs):
142
- if comm.get_rank() > 0:
143
- while True:
144
- pass
145
146
- if self.instance is None:
147
- from IPython.core import ultratb
148
- self.instance = ultratb.FormattedTB(mode="Plain", color_scheme="Linux", call_pdb=1)
149
- return self.instance(*args, **kwargs)
150
151
152
-sys.excepthook = DebugHook()
0 commit comments