schrodinger.application.pymol.mae_sync module

class schrodinger.application.pymol.mae_sync.MaestroEntriesInfo(num_ws_entries, num_pt_sel_entries, num_pt_entries, num_scenes)

Bases: tuple

num_pt_entries

Alias for field number 2

num_pt_sel_entries

Alias for field number 1

num_scenes

Alias for field number 3

num_ws_entries

Alias for field number 0

class schrodinger.application.pymol.mae_sync.MaestroViewSettingsModel(ws_view_matrix: list, ws_coordinate_center: list, ws_translation: list, ws_viewing_volume: list, perspective: float)

Bases: object

Stores the current view settings of Maestro.

ws_view_matrix: list
ws_coordinate_center: list
ws_translation: list
ws_viewing_volume: list
perspective: float
__init__(ws_view_matrix: list, ws_coordinate_center: list, ws_translation: list, ws_viewing_volume: list, perspective: float) None
class schrodinger.application.pymol.mae_sync.MaestroSettingsModel(scenes: dict, center_rotation: bool, view_settings: schrodinger.application.pymol.mae_sync.MaestroViewSettingsModel)

Bases: object

Stores the current maestro settings, that we export to PyMOL.

scenes: dict
center_rotation: bool
view_settings: schrodinger.application.pymol.mae_sync.MaestroViewSettingsModel
__init__(scenes: dict, center_rotation: bool, view_settings: schrodinger.application.pymol.mae_sync.MaestroViewSettingsModel) None
class schrodinger.application.pymol.mae_sync.PyMOLMaestroSync(*args, **kwargs)

Bases: schrodinger.maestro_utils.maestro_sync.BaseMaestroSync, PyQt6.QtCore.QObject

A connector class that updates the current project information in maestro to Export To PyMOL panel.

Variables

entriesInfoChanged – Signal emitted when there is any update in project. It sends information of current project entries information for client to consume.

entriesInfoChanged

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

onProjectUpdated()

Callback method for project update events. Should be overridden in concrete subclasses to add functionality.

getMaestroSettings()

Sends maestro related information required during export.

getCenterRotation() bool

Return center rotation setting in Maestro.

getScenesData() dict[int, str]

Returns a dict storing scenes description for each scene.

schrodinger.application.pymol.mae_sync.get_maestro_view_settings() schrodinger.application.pymol.mae_sync.MaestroViewSettingsModel

Returns the current maestro view settings model.

schrodinger.application.pymol.mae_sync.get_perspective() float

Return persective data if available, else -1.