schrodinger.application.phase.pt_hypothesis module¶
Module for manipulating hypothesis entries in the project table.
- class schrodinger.application.phase.pt_hypothesis.PhaseHypothesisMonitor¶
Bases:
PyQt6.QtCore.QObject
This class provides signals that are emitted when hypothesis is changed. These signals should be emitted with the hypothesis entry id.
- Variables
hypothesisChanged (
QtCore.pyqtSignal
) – signal emitted when hypothesis is changed
- hypothesisChanged¶
- __init__(*args, **kwargs)¶
- blockSignals(self, b: bool) bool ¶
- childEvent(self, a0: QChildEvent)¶
- children(self) List[QObject] ¶
- connectNotify(self, signal: QMetaMethod)¶
- customEvent(self, a0: QEvent)¶
- deleteLater(self)¶
- destroyed¶
destroyed(self, object: typing.Optional[QObject] = None) [signal]
- disconnect(a0: QMetaObject.Connection) bool ¶
- disconnect(self) None
- disconnectNotify(self, signal: QMetaMethod)¶
- dumpObjectInfo(self)¶
- dumpObjectTree(self)¶
- dynamicPropertyNames(self) List[QByteArray] ¶
- event(self, a0: QEvent) bool ¶
- eventFilter(self, a0: QObject, a1: QEvent) bool ¶
- findChild(self, type: type, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObject ¶
- findChild(self, types: Tuple, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObject
- findChildren(self, type: type, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject] ¶
- findChildren(self, types: Tuple, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, type: type, re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, types: Tuple, re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
- inherits(self, classname: str) bool ¶
- installEventFilter(self, a0: QObject)¶
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- isWidgetType(self) bool ¶
- isWindowType(self) bool ¶
- killTimer(self, id: int)¶
- metaObject(self) QMetaObject ¶
- moveToThread(self, thread: QThread)¶
- objectName(self) str ¶
- objectNameChanged¶
objectNameChanged(self, objectName: str) [signal]
- parent(self) QObject ¶
- property(self, name: str) Any ¶
- pyqtConfigure(...)¶
Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
- receivers(self, signal: PYQT_SIGNAL) int ¶
- removeEventFilter(self, a0: QObject)¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setObjectName(self, name: str)¶
- setParent(self, a0: QObject)¶
- setProperty(self, name: str, value: Any) bool ¶
- signalsBlocked(self) bool ¶
- startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int ¶
- staticMetaObject = <PyQt6.QtCore.QMetaObject object>¶
- thread(self) QThread ¶
- timerEvent(self, a0: QTimerEvent)¶
- tr(sourceText: str, disambiguation: typing.Optional[str] = None, n: int = - 1) str ¶
- schrodinger.application.phase.pt_hypothesis.get_hypo_monitor()¶
This function returns global PhaseHypothesisMonitor object that should be used to monitor signals emitted when hypothesis is changed.
- Returns
PhaseHypothesisMonitor
- Return type
- schrodinger.application.phase.pt_hypothesis.update_hypothesis_entry(hypo, entry_id)¶
Updates the structure in the project table for the given entry ID with the current PhaseHypothesis.
- Parameters
entry_id (int or str) – entry id to set hypothesis to
- schrodinger.application.phase.pt_hypothesis.get_hypothesis_from_project(entry_id)¶
Gets hypothesis with a given entry id from the project. It creates a hypothesis object from entries within same hypothesis group.
- Parameters
entry_id (int) – hypothesis ID
- Returns
Phase hypothesis
- Return type
PhaseHypothesis
- schrodinger.application.phase.pt_hypothesis.convert_project_hypotheses(project_handle)¶
Converts all hypothesis datafiles in the original Phase format into PhaseHypothesis (PhpHypoAdaptor) objects. If successful, each hypothesis is updated in the project to the new format. If the given entry ID does not have a corresponding hypothesis datafile, nothing is done.
- Parameters
project_handle (int) –
project.Project
handle
- schrodinger.application.phase.pt_hypothesis.is_hypothesis_entry(entry_id)¶
Returns whether project table row is a Phase hypothesis entry or not.
- Parameters
entry_id (int or str) – entry ID for row in project table
- Returns
True if the row is a hypothesis entry, false Otherwise
- Return type
bool
- schrodinger.application.phase.pt_hypothesis.get_hypothesis_entry_ids(entry_id)¶
Returns entry_ids of all entries in the group associated with the passed hypothesis entry ID.
- Parameters
hypo_entry_id – hypothesis entry ID
hypo_entry_id – int
- Returns
list of entry ids associated with the given hypothesis
- Return type
list