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
¶
-
__class__
¶ alias of
sip.wrappertype
-
__delattr__
¶ Implement delattr(self, name).
-
__dict__
= mappingproxy({'__module__': 'schrodinger.application.phase.pt_hypothesis', '__doc__': '\n This class provides signals that are emitted when hypothesis is changed.\n These signals should be emitted with the hypothesis entry id.\n\n :ivar hypothesisChanged: signal emitted when hypothesis is changed\n :vartype hypothesisChanged: `QtCore.pyqtSignal`\n ', 'hypothesisChanged': <unbound PYQT_SIGNAL PhaseHypothesisMonitor.hypothesisChanged[int]>})¶
-
__dir__
() → list¶ default dir() implementation
-
__eq__
¶ Return self==value.
-
__format__
()¶ default object formatter
-
__ge__
¶ Return self>=value.
-
__getattr__
(self, str) → object¶
-
__getattribute__
¶ Return getattr(self, name).
-
__gt__
¶ Return self>value.
-
__hash__
¶ Return hash(self).
-
__init__
¶ Initialize self. See help(type(self)) for accurate signature.
-
__init_subclass__
()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
__le__
¶ Return self<=value.
-
__lt__
¶ Return self<value.
-
__module__
= 'schrodinger.application.phase.pt_hypothesis'¶
-
__ne__
¶ Return self!=value.
-
__new__
()¶ Create and return a new object. See help(type) for accurate signature.
-
__reduce__
()¶ helper for pickle
-
__reduce_ex__
()¶ helper for pickle
-
__repr__
¶ Return repr(self).
-
__setattr__
¶ Implement setattr(self, name, value).
-
__sizeof__
() → int¶ size of object in memory, in bytes
-
__str__
¶ Return str(self).
-
__subclasshook__
()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
__weakref__
¶ list of weak references to the object (if defined)
-
blockSignals
(self, bool) → bool¶
-
childEvent
(self, QChildEvent)¶
-
children
(self) → object¶
-
connectNotify
(self, QMetaMethod)¶
-
customEvent
(self, QEvent)¶
-
deleteLater
(self)¶
-
destroyed
¶ destroyed(self, QObject = None) [signal]
-
disconnect
(self)¶
-
disconnectNotify
(self, QMetaMethod)¶
-
dumpObjectInfo
(self)¶
-
dumpObjectTree
(self)¶
-
dynamicPropertyNames
(self) → object¶
-
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