schrodinger.maestro_utils.maestro_sync module

class schrodinger.maestro_utils.maestro_sync.MaestroSync

Bases: object

Class for keeping track of project callbacks.

Variables:
  • _cb_type_callback_map (set[str, set[Callable]]) – a dictionary mapping callback types to the set of callback functions associated with that type
  • _callbacks_active (bool) – whether the stored callbacks should be registered at this time
__init__()

Initialize self. See help(type(self)) for accurate signature.

addProjectUpdateCallback(callback_fn)

Add function to list of “project updated” callbacks.

Parameters:callback_fn (Callable) – the function to add
addProjectCloseCallback(callback_fn)

Add function to list of “project closed” callbacks.

Parameters:callback_fn (Callable) – the function to add
setCallbacksActive(active)

Register or deregister all callbacks. When activating, call all “project updated” callbacks.

Parameters:active (bool) – whether to register or deregister callbacks with Maestro
importStructureFile(file_path)

Import the specified structure file into the project.

Parameters:file_path (str) – a structure file path