schrodinger.maestro_utils.surface_manager.info_tab module

class schrodinger.maestro_utils.surface_manager.info_tab.InfoTab(parent: QWidget = None)

Bases: QWidget

Tab for displaying information about selected surfaces.

__init__(parent: QWidget = None)

Constructor for InfoTab. Sets up the UI and connects the signals.

Parameters:

parent – Parent widget, defaults to None

roundIfNotENotation(value: float, precision: int) float

Rounds a float to the required decimal places if it’s default string representation does not use ‘e’ or ‘E’ (scientific notation).

Parameters:
  • value – The float value to round.

  • precision – The number of decimal places to round to.

Returns:

The rounded float value if it does not use scientific notation, otherwise returns the original value.

refresh(surface_info: SurfaceInfo) None

Refreshes the information displayed in the tab.

Parameters:

surface_info – SurfaceInfo object containing the surface details.