Package schrodinger :: Package infra :: Module mmerr :: Class disable_mmerr
[hide private]
[frames] | no frames]

Class disable_mmerr

                     object --+    
                              |    
util.DecoratorAndContextManager --+
                                  |
                                 disable_mmerr

Turn off mmerr reporting within a context or while a function is being run. Uses the default mm.error_handler level.

Instance Methods [hide private]
 
__init__(self, handle=None)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__enter__(self)
Enter the context manager: turn off mmerr reporting .
 
__exit__(self, exc_type, exc_value, traceback)
Exit context manager: return mmerr reporting to its previous level.

Inherited from util.DecoratorAndContextManager: __call__, decorate

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, handle=None)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__enter__(self)

 

Enter the context manager: turn off mmerr reporting .

Overrides: util.DecoratorAndContextManager.__enter__

__exit__(self, exc_type, exc_value, traceback)

 

Exit context manager: return mmerr reporting to its previous level.

Exception arguments are unused, but required by context manager signature.

Overrides: util.DecoratorAndContextManager.__exit__