Package schrodinger :: Package maestro :: Module maestro :: Class _IgnoreCallback
[hide private]
[frames] | no frames]

Class _IgnoreCallback

This is a context manager to ignore maestro callbacks inside a with: block

Instance Methods [hide private]
 
__init__(self, callback_type, callback_func)
 
__enter__(self)
 
__exit__(self, exc_type, exc_value, exc_tb)
Method Details [hide private]

__init__(self, callback_type, callback_func)
(Constructor)

 
Parameters:
  • callback_type (str) - What callback you're working with, these are the keys to the _callbacks dict.
  • callback_func (A function) - The method we want to disconnect (if connected) from the given callback