schrodinger.application.phase.pt_hypothesis module¶
Module for manipulating hypothesis entries in the project table.
-
class
schrodinger.application.phase.pt_hypothesis.
PhaseHypothesisMonitor
¶ Bases:
PyQt5.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__
¶ Initialize self. See help(type(self)) for accurate signature.
-
blockSignals
(self, bool) → bool¶
-
childEvent
(self, QChildEvent)¶
-
children
(self) → List[QObject]¶
-
connectNotify
(self, QMetaMethod)¶
-
customEvent
(self, QEvent)¶
-
deleteLater
(self)¶
-
destroyed
¶ destroyed(self, object: QObject = None) [signal]
-
disconnect
(self)¶
-
disconnectNotify
(self, QMetaMethod)¶
-
dumpObjectInfo
(self)¶
-
dumpObjectTree
(self)¶
-
dynamicPropertyNames
(self) → List[QByteArray]¶
-
event
(self, QEvent) → bool¶
-
eventFilter
(self, QObject, QEvent) → bool¶
-
findChild
(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject¶ findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject
-
findChildren
(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[QObject]¶ findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
-
inherits
(self, str) → bool¶
-
installEventFilter
(self, QObject)¶
-
isSignalConnected
(self, QMetaMethod) → bool¶
-
isWidgetType
(self) → bool¶
-
isWindowType
(self) → bool¶
-
killTimer
(self, int)¶
-
metaObject
(self) → QMetaObject¶
-
moveToThread
(self, QThread)¶
-
objectName
(self) → str¶
-
objectNameChanged
¶ objectNameChanged(self, str) [signal]
-
parent
(self) → QObject¶
-
property
(self, 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, PYQT_SIGNAL) → int¶
-
removeEventFilter
(self, QObject)¶
-
sender
(self) → QObject¶
-
senderSignalIndex
(self) → int¶
-
setObjectName
(self, str)¶
-
setParent
(self, QObject)¶
-
setProperty
(self, str, Any) → bool¶
-
signalsBlocked
(self) → bool¶
-
startTimer
(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int¶
-
staticMetaObject
= <PyQt5.QtCore.QMetaObject object>¶
-
thread
(self) → QThread¶
-
timerEvent
(self, QTimerEvent)¶
-
tr
(self, str, disambiguation: 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: PhaseHypothesisMonitor
-
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) – 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