Пример #1
0
VTK_SIGNED_CHAR = 15
VTK_UNSIGNED_CHAR = 3
VTK_SHORT = 4
VTK_UNSIGNED_SHORT = 5
VTK_INT = 6
VTK_UNSIGNED_INT = 7
VTK_LONG = 8
VTK_UNSIGNED_LONG = 9
VTK_FLOAT = 10
VTK_DOUBLE = 11
VTK_ID_TYPE = 12

hyperwall_role = None
currentTime = 0
# dvLogFile =  open( os.path.expanduser( '~/.vistrails/dv3d_log.txt' ), 'w' )
dvDbgIO = DebugPrint()
dvDbgIO.set_stream(sys.stderr)

EnableMemoryLogging = False

original_stdout = sys.stdout
original_stderr = sys.stderr
new_stdout = sys.stdout
new_stderr = sys.stderr


class DiagnosticWriter:
    def __init__(self, **args):
        self.diagnostics_file = None
        self.diagnostics_file_path = args.get("file_path", "/tmp/dv3d_diag_file.txt")
Пример #2
0
VTK_SIGNED_CHAR = 15
VTK_UNSIGNED_CHAR = 3
VTK_SHORT = 4
VTK_UNSIGNED_SHORT = 5
VTK_INT = 6
VTK_UNSIGNED_INT = 7
VTK_LONG = 8
VTK_UNSIGNED_LONG = 9
VTK_FLOAT = 10
VTK_DOUBLE = 11
VTK_ID_TYPE = 12

hyperwall_role = None
currentTime = 0
# dvLogFile =  open( os.path.expanduser( '~/.vistrails/dv3d_log.txt' ), 'w' )
dvDbgIO = DebugPrint()
dvDbgIO.set_stream(sys.stderr)

EnableMemoryLogging = False

original_stdout = sys.stdout
original_stderr = sys.stderr
new_stdout = sys.stdout
new_stderr = sys.stderr


class DiagnosticWriter:
    def __init__(self, **args):
        self.diagnostics_file = None
        self.diagnostics_file_path = args.get('file_path',
                                              '/tmp/dv3d_diag_file.txt')