schrodinger.maestro_utils.surface_manager.surface_table_state_manager module¶
- class schrodinger.maestro_utils.surface_manager.surface_table_state_manager.SurfaceTableStateManager(table: SurfaceTable)¶
Bases:
object
RAII class that saves table state on initialization and restores it when exiting the context.
- Variables:
_expanded_entries (set[int]) – Set of entry IDs that are expanded.
_selected_surfaces (set[tuple[int, str]]) – Set of tuples containing entry ID and surface name uniquely identifying selected surfaces.
_table (SurfaceTable) – The surface table to manage.
- __init__(table: SurfaceTable)¶
Initialize the SurfaceTableStateManager.
- Parameters:
table – Table to immediately save state from.