schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots module¶
- class schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.FreqInfo(freq, count)¶
Bases:
tuple
- __contains__(key, /)¶
Return key in self.
- __len__()¶
Return len(self).
- count¶
Alias for field number 1
- freq¶
Alias for field number 0
- index(value, start=0, stop=9223372036854775807, /)¶
Return first index of value.
Raises ValueError if the value is not present.
- class schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.ConfWheelFigure(width=5, height=4, dpi=100, toolbar=True, layout=None, expanding=True, toolbar_class=None, **kwargs)¶
Bases:
schrodinger.ui.qt.smatplotlib.SmatplotlibCanvas
- sizeHint(self) QSize ¶
- miniumSizeHint()¶
- DrawChildren = 2¶
- DrawWindowBackground = 1¶
- IgnoreMask = 4¶
- class PaintDeviceMetric(value)¶
Bases:
enum.Enum
An enumeration.
- PdmWidth = 1¶
- PdmHeight = 2¶
- PdmWidthMM = 3¶
- PdmHeightMM = 4¶
- PdmNumColors = 5¶
- PdmDepth = 6¶
- PdmDpiX = 7¶
- PdmDpiY = 8¶
- PdmPhysicalDpiX = 9¶
- PdmPhysicalDpiY = 10¶
- PdmDevicePixelRatio = 11¶
- PdmDevicePixelRatioScaled = 12¶
- PdmDepth = 6¶
- PdmDevicePixelRatio = 11¶
- PdmDevicePixelRatioScaled = 12¶
- PdmDpiX = 7¶
- PdmDpiY = 8¶
- PdmHeight = 2¶
- PdmHeightMM = 4¶
- PdmNumColors = 5¶
- PdmPhysicalDpiX = 9¶
- PdmPhysicalDpiY = 10¶
- PdmWidth = 1¶
- PdmWidthMM = 3¶
- class RenderFlag(value)¶
Bases:
enum.Flag
An enumeration.
- DrawWindowBackground = 1¶
- DrawChildren = 2¶
- IgnoreMask = 4¶
- TOOLBAR_CLASS¶
- __init__(width=5, height=4, dpi=100, toolbar=True, layout=None, expanding=True, toolbar_class=None, **kwargs)¶
- Parameters
width (number) – width of the plot Figure in inches
height (number) – height of the plot Figure in inches
dpi (int) – resolution of the plot
toolbar (boolean) – True if the toolbar should be created, but the parent parameter must be supplied in this case
layout (QLayout object) – If layout is supplied, the toolbar and canvas will be placed in it.
toolbar_class (class) – If provided, the class to use for the toolbar
Extra keyword arguments are passed to the toolbar function
- acceptDrops(self) bool ¶
- accessibleDescription(self) str ¶
- accessibleName(self) str ¶
- actionEvent(self, a0: QActionEvent)¶
- actions(self) List[QAction] ¶
- activateWindow(self)¶
- addAction(self, action: QAction)¶
- addActions(self, actions: Iterable[QAction])¶
- adjustSize(self)¶
- autoFillBackground(self) bool ¶
- backgroundRole(self) QPalette.ColorRole ¶
- baseSize(self) QSize ¶
- blit(bbox=None)¶
Blit the canvas in bbox (default entire canvas).
- blockSignals(self, b: bool) bool ¶
- buffer_rgba()¶
Get the image as a
memoryview
to the renderer’s buffer.draw
must be called at least once before this function will work and to update the renderer for any subsequent changes to the Figure.
- property button_pick_id¶
- button_press_event(x, y, button, dblclick=False, guiEvent=None)¶
Callback processing for mouse button press events.
Backend derived classes should call this function on any mouse button press. (x, y) are the canvas coords ((0, 0) is lower left). button and key are as defined in
MouseEvent
.This method will call all functions connected to the ‘button_press_event’ with a
MouseEvent
instance.
- button_release_event(x, y, button, guiEvent=None)¶
Callback processing for mouse button release events.
Backend derived classes should call this function on any mouse button release.
This method will call all functions connected to the ‘button_release_event’ with a
MouseEvent
instance.- xfloat
The canvas coordinates where 0=left.
- yfloat
The canvas coordinates where 0=bottom.
- guiEvent
The native UI event that generated the Matplotlib event.
- buttond = {<MouseButton.LeftButton: 1>: <MouseButton.LEFT: 1>, <MouseButton.RightButton: 2>: <MouseButton.RIGHT: 3>, <MouseButton.MiddleButton: 4>: <MouseButton.MIDDLE: 2>, <MouseButton.XButton1: 8>: <MouseButton.BACK: 8>, <MouseButton.XButton2: 16>: <MouseButton.FORWARD: 9>}¶
- property callbacks¶
- changeEvent(self, a0: QEvent)¶
- childAt(self, p: QPoint) QWidget ¶
- childAt(self, ax: int, ay: int) QWidget
- childEvent(self, a0: QChildEvent)¶
- children(self) List[QObject] ¶
- childrenRect(self) QRect ¶
- childrenRegion(self) QRegion ¶
- clearFocus(self)¶
- clearMask(self)¶
- close(self) bool ¶
- closeEvent(self, a0: QCloseEvent)¶
- close_event(guiEvent=None)¶
Pass a
CloseEvent
to all functions connected toclose_event
.
- colorCount(self) int ¶
- connectNotify(self, signal: QMetaMethod)¶
- contentsMargins(self) QMargins ¶
- contentsRect(self) QRect ¶
- contextMenuEvent(self, a0: QContextMenuEvent)¶
- contextMenuPolicy(self) Qt.ContextMenuPolicy ¶
- copy_from_bbox(bbox)¶
- create(self, window: PyQt6.sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)¶
- createWindowContainer(window: QWindow, parent: typing.Optional[QWidget] = None, flags: Qt.WindowType = Qt.WindowFlags()) QWidget ¶
- cursor(self) QCursor ¶
- customContextMenuRequested¶
customContextMenuRequested(self, pos: QPoint) [signal]
- customEvent(self, a0: QEvent)¶
- deleteLater(self)¶
- depth(self) int ¶
- destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
- destroyed¶
destroyed(self, object: typing.Optional[QObject] = None) [signal]
- devType(self) int ¶
- devicePixelRatio(self) float ¶
- devicePixelRatioF(self) float ¶
- devicePixelRatioFScale() float ¶
- property device_pixel_ratio¶
The ratio of physical to logical pixels used for the canvas on screen.
By default, this is 1, meaning physical and logical pixels are the same size. Subclasses that support High DPI screens may set this property to indicate that said ratio is different. All Matplotlib interaction, unless working directly with the canvas, remains in logical pixels.
- disconnect(a0: QMetaObject.Connection) bool ¶
- disconnect(self) None
- disconnectNotify(self, signal: QMetaMethod)¶
- dragEnterEvent(self, a0: QDragEnterEvent)¶
- dragLeaveEvent(self, a0: QDragLeaveEvent)¶
- dragMoveEvent(self, a0: QDragMoveEvent)¶
- draw()¶
Render the figure, and queue a request for a Qt draw.
- drawAndUpdate(tight_layout=True)¶
Update canvas and toolbar after plotting.
- Parameters
tight_layout (bool) – Whether to apply tight layout after plotting
- drawRectangle(rect)¶
- draw_event(renderer)¶
Pass a
DrawEvent
to all functions connected todraw_event
.
- draw_idle()¶
Queue redraw of the Agg buffer and request Qt paintEvent.
- dropEvent(self, a0: QDropEvent)¶
- dumpObjectInfo(self)¶
- dumpObjectTree(self)¶
- dynamicPropertyNames(self) List[QByteArray] ¶
- effectiveWinId(self) PyQt6.sip.voidptr ¶
- ensurePolished(self)¶
- enterEvent(self, event: QEnterEvent)¶
- enter_notify_event(guiEvent=None, xy=None)¶
Callback processing for the mouse cursor entering the canvas.
Backend derived classes should call this function when entering canvas.
- guiEvent
The native UI event that generated the Matplotlib event.
- xy(float, float)
The coordinate location of the pointer when the canvas is entered.
- event(self, a0: QEvent) bool ¶
- eventFilter(obj, event)¶
The canvas needs to grab keyboard input in order to reliably tell when a modifier key (shift or control) is down when a mouse button is pressed/released.
Some environments have trouble with passing the control key in events - a control-left-click is often mapped to a right-click. Therefore we do our best to capture on our own when the control key is down. Note that even this breaks for multiple control-clicks on Linux running under VMWare Fusion on Macs, because VMWare by default “lifts” the control key after the first click.
- Parameters
obj (not used) – not used
event (QEvent) – the event object
- events = ['resize_event', 'draw_event', 'key_press_event', 'key_release_event', 'button_press_event', 'button_release_event', 'scroll_event', 'motion_notify_event', 'pick_event', 'figure_enter_event', 'figure_leave_event', 'axes_enter_event', 'axes_leave_event', 'close_event']¶
- filetypes = {'eps': 'Encapsulated Postscript', 'jpeg': 'Joint Photographic Experts Group', 'jpg': 'Joint Photographic Experts Group', 'pdf': 'Portable Document Format', 'pgf': 'PGF code for LaTeX', 'png': 'Portable Network Graphics', 'ps': 'Postscript', 'raw': 'Raw RGBA bitmap', 'rgba': 'Raw RGBA bitmap', 'svg': 'Scalable Vector Graphics', 'svgz': 'Scalable Vector Graphics', 'tif': 'Tagged Image File Format', 'tiff': 'Tagged Image File Format'}¶
- find(a0: PyQt6.sip.voidptr) QWidget ¶
- 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]
- fixed_dpi = None¶
- flush_events()¶
Flush the GUI events for the figure.
Interactive backends need to reimplement this method.
- focusInEvent(self, a0: QFocusEvent)¶
- focusNextChild(self) bool ¶
- focusNextPrevChild(self, next: bool) bool ¶
- focusOutEvent(self, a0: QFocusEvent)¶
- focusPolicy(self) Qt.FocusPolicy ¶
- focusPreviousChild(self) bool ¶
- focusProxy(self) QWidget ¶
- focusWidget(self) QWidget ¶
- font(self) QFont ¶
- fontInfo(self) QFontInfo ¶
- fontMetrics(self) QFontMetrics ¶
- foregroundRole(self) QPalette.ColorRole ¶
- frameGeometry(self) QRect ¶
- frameSize(self) QSize ¶
- geometry(self) QRect ¶
- get_default_filename()¶
Return a string, which includes extension, suitable for use as a default filename.
- classmethod get_default_filetype()¶
Return the default savefig file format as specified in :rc:`savefig.format`.
The returned string does not include a period. This method is overridden in backends that only support a single file type.
- get_renderer(cleared=False)¶
- classmethod get_supported_filetypes()¶
Return dict of savefig file formats supported by this backend.
- classmethod get_supported_filetypes_grouped()¶
Return a dict of savefig file formats supported by this backend, where the keys are a file type name, such as ‘Joint Photographic Experts Group’, and the values are a list of filename extensions used for that filetype, such as [‘jpg’, ‘jpeg’].
- get_width_height(*, physical=False)¶
Return the figure width and height in integral points or pixels.
When the figure is used on High DPI screens (and the backend supports it), the truncation to integers occurs after scaling by the device pixel ratio.
- physicalbool, default: False
Whether to return true physical pixels or logical pixels. Physical pixels may be used by backends that support HiDPI, but still configure the canvas using its actual size.
- width, heightint
The size of the figure, in points or pixels, depending on the backend.
- get_window_title()¶
[Deprecated] Return the title text of the window containing the figure, or None if there is no window (e.g., a PS backend).
Deprecated since version 3.4: Use
FigureManagerBase.get_window_title
or GUI-specific methods instead.
- grab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(- 1, - 1))) QPixmap ¶
- grabGesture(self, type: Qt.GestureType, flags: Qt.GestureFlag = Qt.GestureFlags())¶
- grabKeyboard(self)¶
- grabMouse(self)¶
- grabMouse(self, a0: Union[QCursor, Qt.CursorShape]) None
- grabShortcut(self, key: Union[QKeySequence, QKeySequence.StandardKey, str, int], context: Qt.ShortcutContext = Qt.WindowShortcut) int ¶
- grab_mouse(ax)¶
Set the child
Axes
which is grabbing the mouse events.Usually called by the widgets themselves. It is an error to call this if the mouse is already grabbed by another axes.
- graphicsEffect(self) QGraphicsEffect ¶
- graphicsProxyWidget(self) QGraphicsProxyWidget ¶
- hasFocus(self) bool ¶
- hasHeightForWidth(self) bool ¶
- hasMouseTracking(self) bool ¶
- hasTabletTracking(self) bool ¶
- height(self) int ¶
- heightForWidth(self, a0: int) int ¶
- heightMM(self) int ¶
- hide(self)¶
- hideEvent(self, a0: QHideEvent)¶
- inaxes(xy)¶
Return the topmost visible
Axes
containing the point xy.- xy(float, float)
(x, y) pixel positions from left/bottom of the canvas.
Axes
or NoneThe topmost visible axes containing the point, or None if no axes.
- inherits(self, classname: str) bool ¶
- initPainter(self, painter: QPainter)¶
- inputMethodEvent(self, a0: QInputMethodEvent)¶
- inputMethodHints(self) Qt.InputMethodHint ¶
- inputMethodQuery(self, a0: Qt.InputMethodQuery) Any ¶
- insertAction(self, before: QAction, action: QAction)¶
- insertActions(self, before: QAction, actions: Iterable[QAction])¶
- installEventFilter(self, a0: QObject)¶
- isActiveWindow(self) bool ¶
- isAncestorOf(self, child: QWidget) bool ¶
- isEnabled(self) bool ¶
- isEnabledTo(self, a0: QWidget) bool ¶
- isFullScreen(self) bool ¶
- isHidden(self) bool ¶
- isLeftToRight(self) bool ¶
- isMaximized(self) bool ¶
- isMinimized(self) bool ¶
- isModal(self) bool ¶
- isRightToLeft(self) bool ¶
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- isVisible(self) bool ¶
- isVisibleTo(self, a0: QWidget) bool ¶
- isWidgetType(self) bool ¶
- isWindow(self) bool ¶
- isWindowModified(self) bool ¶
- isWindowType(self) bool ¶
- is_saving()¶
Return whether the renderer is in the process of saving to a file, rather than rendering for an on-screen buffer.
- keyPressEvent(self, a0: QKeyEvent)¶
- keyReleaseEvent(self, a0: QKeyEvent)¶
- key_press_event(key, guiEvent=None)¶
Pass a
KeyEvent
to all functions connected tokey_press_event
.
- key_release_event(key, guiEvent=None)¶
Pass a
KeyEvent
to all functions connected tokey_release_event
.
- keyboardGrabber() QWidget ¶
- killTimer(self, id: int)¶
- layout(self) QLayout ¶
- layoutDirection(self) Qt.LayoutDirection ¶
- leaveEvent(self, a0: QEvent)¶
- leave_notify_event(guiEvent=None)¶
Callback processing for the mouse cursor leaving the canvas.
Backend derived classes should call this function when leaving canvas.
- guiEvent
The native UI event that generated the Matplotlib event.
- locale(self) QLocale ¶
- logicalDpiX(self) int ¶
- logicalDpiY(self) int ¶
- lower(self)¶
- mapFrom(self, a0: QWidget, a1: QPoint) QPoint ¶
- mapFrom(self, a0: QWidget, a1: QPointF) QPointF
- mapFromGlobal(self, a0: QPoint) QPoint ¶
- mapFromGlobal(self, a0: QPointF) QPointF
- mapFromParent(self, a0: QPoint) QPoint ¶
- mapFromParent(self, a0: QPointF) QPointF
- mapTo(self, a0: QWidget, a1: QPoint) QPoint ¶
- mapTo(self, a0: QWidget, a1: QPointF) QPointF
- mapToGlobal(self, a0: QPoint) QPoint ¶
- mapToGlobal(self, a0: QPointF) QPointF
- mapToParent(self, a0: QPoint) QPoint ¶
- mapToParent(self, a0: QPointF) QPointF
- mask(self) QRegion ¶
- maximumHeight(self) int ¶
- maximumSize(self) QSize ¶
- maximumWidth(self) int ¶
- metaObject(self) QMetaObject ¶
- metric(self, a0: QPaintDevice.PaintDeviceMetric) int ¶
- minimumHeight(self) int ¶
- minimumSize(self) QSize ¶
- minimumSizeHint(self) QSize ¶
- minimumWidth(self) int ¶
- minumumSizeHint()¶
- motion_notify_event(x, y, guiEvent=None)¶
Callback processing for mouse movement events.
Backend derived classes should call this function on any motion-notify-event.
This method will call all functions connected to the ‘motion_notify_event’ with a
MouseEvent
instance.- xfloat
The canvas coordinates where 0=left.
- yfloat
The canvas coordinates where 0=bottom.
- guiEvent
The native UI event that generated the Matplotlib event.
- mouseDoubleClickEvent(self, a0: QMouseEvent)¶
- mouseEventCoords(pos)¶
Calculate mouse coordinates in physical pixels.
Qt uses logical pixels, but the figure is scaled to physical pixels for rendering. Transform to physical pixels so that all of the down-stream transforms work as expected.
Also, the origin is different and needs to be corrected.
- mouseGrabber() QWidget ¶
- mouseMoveEvent(self, a0: QMouseEvent)¶
- mousePressEvent(event)¶
Add in the control modifier key to the button_press_event
- Parameters
event (QMouseEvent) – the QMouseEvent that triggered this handler
self._key is matplotlib’s way of storing the modifier keys
- mouseReleaseEvent(event)¶
Add in the control modifier key to the button_release_event
- Parameters
event (QMouseEvent) – the QMouseEvent that triggered this handler
self._key is matplotlib’s way of storing the modifier keys
- move(self, a0: QPoint)¶
- move(self, ax: int, ay: int) None
- moveEvent(self, a0: QMoveEvent)¶
- moveToThread(self, thread: QThread)¶
- mpl_connect(s, func)¶
Bind function func to event s.
- sstr
One of the following events ids:
‘button_press_event’
‘button_release_event’
‘draw_event’
‘key_press_event’
‘key_release_event’
‘motion_notify_event’
‘pick_event’
‘resize_event’
‘scroll_event’
‘figure_enter_event’,
‘figure_leave_event’,
‘axes_enter_event’,
‘axes_leave_event’
‘close_event’.
- funccallable
The callback function to be executed, which must have the signature:
def func(event: Event) -> Any
For the location events (button and key press/release), if the mouse is over the axes, the
inaxes
attribute of the event will be set to theAxes
the event occurs is over, and additionally, the variablesxdata
andydata
attributes will be set to the mouse location in data coordinates. SeeKeyEvent
andMouseEvent
for more info.
- cid
A connection id that can be used with
FigureCanvasBase.mpl_disconnect
.
def on_press(event): print('you pressed', event.button, event.xdata, event.ydata) cid = canvas.mpl_connect('button_press_event', on_press)
- mpl_disconnect(cid)¶
Disconnect the callback with id cid.
cid = canvas.mpl_connect('button_press_event', on_press) # ... later canvas.mpl_disconnect(cid)
- nativeEvent(self, eventType: QByteArray, message: PyQt6.sip.voidptr) Tuple[bool, PyQt6.sip.voidptr] ¶
- nativeParentWidget(self) QWidget ¶
- new_timer(interval=None, callbacks=None)¶
Create a new backend-specific subclass of
Timer
.This is useful for getting periodic events through the backend’s native event loop. Implemented only for backends with GUIs.
- intervalint
Timer interval in milliseconds.
- callbackslist[tuple[callable, tuple, dict]]
Sequence of (func, args, kwargs) where
func(*args, **kwargs)
will be executed by the timer every interval.Callbacks which return
False
or0
will be removed from the timer.
>>> timer = fig.canvas.new_timer(callbacks=[(f1, (1,), {'a': 3})])
- nextInFocusChain(self) QWidget ¶
- normalGeometry(self) QRect ¶
- objectName(self) str ¶
- objectNameChanged¶
objectNameChanged(self, objectName: str) [signal]
- overrideWindowFlags(self, type: Qt.WindowType)¶
- overrideWindowState(self, state: Qt.WindowState)¶
- paintEngine(self) QPaintEngine ¶
- paintEvent(event)¶
Copy the image from the Agg canvas to the qt.drawable.
In Qt, all drawing should be done inside of here when a widget is shown onscreen.
- paintingActive(self) bool ¶
- palette(self) QPalette ¶
- parent(self) QObject ¶
- parentWidget(self) QWidget ¶
- physicalDpiX(self) int ¶
- physicalDpiY(self) int ¶
- pick(mouseevent)¶
- pick_event(mouseevent, artist, **kwargs)¶
Callback processing for pick events.
This method will be called by artists who are picked and will fire off
PickEvent
callbacks registered listeners.Note that artists are not pickable by default (see
Artist.set_picker
).
- pos(self) QPoint ¶
- previousInFocusChain(self) QWidget ¶
- print_figure(*args, **kwargs)¶
Render the figure to hardcopy. Set the figure patch face and edge colors. This is useful because some of the GUIs have a gray figure face color background and you’ll probably want to override this on hardcopy.
- filenamestr or path-like or file-like
The file where the figure is saved.
- dpifloat, default: :rc:`savefig.dpi`
The dots per inch to save the figure in.
- facecolorcolor or ‘auto’, default: :rc:`savefig.facecolor`
The facecolor of the figure. If ‘auto’, use the current figure facecolor.
- edgecolorcolor or ‘auto’, default: :rc:`savefig.edgecolor`
The edgecolor of the figure. If ‘auto’, use the current figure edgecolor.
- orientation{‘landscape’, ‘portrait’}, default: ‘portrait’
Only currently applies to PostScript printing.
- formatstr, optional
Force a specific file format. If not given, the format is inferred from the filename extension, and if that fails from :rc:`savefig.format`.
- bbox_inches‘tight’ or
Bbox
, default: :rc:`savefig.bbox` Bounding box in inches: only the given portion of the figure is saved. If ‘tight’, try to figure out the tight bbox of the figure.
- pad_inchesfloat, default: :rc:`savefig.pad_inches`
Amount of padding around the figure when bbox_inches is ‘tight’.
- bbox_extra_artistslist of
Artist
, optional A list of extra artists that will be considered when the tight bbox is calculated.
- backendstr, optional
Use a non-default backend to render the file, e.g. to render a png file with the “cairo” backend rather than the default “agg”, or a pdf file with the “pgf” backend rather than the default “pdf”. Note that the default backend is normally sufficient. See the-builtin-backends for a list of valid backends for each file format. Custom backends can be referenced as “module://…”.
- print_jpeg(filename_or_obj, *args, pil_kwargs=None, **kwargs)¶
Write the figure to a JPEG file.
- filename_or_objstr or path-like or file-like
The file to write to.
- pil_kwargsdict, optional
Additional keyword arguments that are passed to
PIL.Image.Image.save
when saving the figure.
- print_jpg(filename_or_obj, *args, pil_kwargs=None, **kwargs)¶
Write the figure to a JPEG file.
- filename_or_objstr or path-like or file-like
The file to write to.
- pil_kwargsdict, optional
Additional keyword arguments that are passed to
PIL.Image.Image.save
when saving the figure.
- print_png(filename_or_obj, *args, metadata=None, pil_kwargs=None)¶
Write the figure to a PNG file.
- filename_or_objstr or path-like or file-like
The file to write to.
- metadatadict, optional
Metadata in the PNG file as key-value pairs of bytes or latin-1 encodable strings. According to the PNG specification, keys must be shorter than 79 chars.
The PNG specification defines some common keywords that may be used as appropriate:
Title: Short (one line) title or caption for image.
Author: Name of image’s creator.
Description: Description of image (possibly long).
Copyright: Copyright notice.
Creation Time: Time of original image creation (usually RFC 1123 format).
Software: Software used to create the image.
Disclaimer: Legal disclaimer.
Warning: Warning of nature of content.
Source: Device used to create the image.
Comment: Miscellaneous comment; conversion from other image format.
Other keywords may be invented for other purposes.
If ‘Software’ is not given, an autogenerated value for Matplotlib will be used. This can be removed by setting it to None.
For more details see the PNG specification.
- pil_kwargsdict, optional
Keyword arguments passed to
PIL.Image.Image.save
.If the ‘pnginfo’ key is present, it completely overrides metadata, including the default ‘Software’ key.
- print_raw(filename_or_obj, *args)¶
- print_rgba(filename_or_obj, *args)¶
- print_tif(filename_or_obj, *, pil_kwargs=None)¶
- print_tiff(filename_or_obj, *, pil_kwargs=None)¶
- print_to_buffer()¶
- 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.
- raise_(self)¶
- receivers(self, signal: PYQT_SIGNAL) int ¶
- rect(self) QRect ¶
- releaseKeyboard(self)¶
- releaseMouse(self)¶
- releaseShortcut(self, id: int)¶
- release_mouse(ax)¶
Release the mouse grab held by the
Axes
ax.Usually called by the widgets. It is ok to call this even if ax doesn’t have the mouse grab currently.
- removeAction(self, action: QAction)¶
- removeEventFilter(self, a0: QObject)¶
- render(self, target: QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlag = QWidget.RenderFlags(QWidget.DrawWindowBackground | QWidget.DrawChildren))¶
- render(self, painter: QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlag = QWidget.RenderFlags(QWidget.DrawWindowBackground | QWidget.DrawChildren)) None
- repaint(self)¶
- repaint(self, x: int, y: int, w: int, h: int) None
- repaint(self, a0: QRect) None
- repaint(self, a0: QRegion) None
- required_interactive_framework = 'qt'¶
- resize(self, a0: QSize)¶
- resize(self, w: int, h: int) None
- resizeEvent(self, a0: QResizeEvent)¶
- resize_event()¶
Pass a
ResizeEvent
to all functions connected toresize_event
.
- restoreGeometry(self, geometry: QByteArray) bool ¶
- restore_region(region, bbox=None, xy=None)¶
- saveGeometry(self) QByteArray ¶
- screen(self) QScreen ¶
- scroll(self, dx: int, dy: int)¶
- scroll(self, dx: int, dy: int, a2: QRect) None
- scroll_event(x, y, step, guiEvent=None)¶
Callback processing for scroll events.
Backend derived classes should call this function on any scroll wheel event. (x, y) are the canvas coords ((0, 0) is lower left). button and key are as defined in
MouseEvent
.This method will call all functions connected to the ‘scroll_event’ with a
MouseEvent
instance.
- property scroll_pick_id¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setAcceptDrops(self, on: bool)¶
- setAccessibleDescription(self, description: str)¶
- setAccessibleName(self, name: str)¶
- setAttribute(self, attribute: Qt.WidgetAttribute, on: bool = True)¶
- setAutoFillBackground(self, enabled: bool)¶
- setBackgroundRole(self, a0: QPalette.ColorRole)¶
- setBaseSize(self, basew: int, baseh: int)¶
- setBaseSize(self, s: QSize) None
- setContentsMargins(self, left: int, top: int, right: int, bottom: int)¶
- setContentsMargins(self, margins: QMargins) None
- setContextMenuPolicy(self, policy: Qt.ContextMenuPolicy)¶
- setCursor(self, a0: Union[QCursor, Qt.CursorShape])¶
- setDisabled(self, a0: bool)¶
- setEnabled(self, a0: bool)¶
- setFixedHeight(self, h: int)¶
- setFixedSize(self, a0: QSize)¶
- setFixedSize(self, w: int, h: int) None
- setFixedWidth(self, w: int)¶
- setFocus(self)¶
- setFocus(self, reason: Qt.FocusReason) None
- setFocusPolicy(self, policy: Qt.FocusPolicy)¶
- setFocusProxy(self, a0: QWidget)¶
- setFont(self, a0: QFont)¶
- setForegroundRole(self, a0: QPalette.ColorRole)¶
- setGeometry(self, a0: QRect)¶
- setGeometry(self, ax: int, ay: int, aw: int, ah: int) None
- setGraphicsEffect(self, effect: QGraphicsEffect)¶
- setHidden(self, hidden: bool)¶
- setInputMethodHints(self, hints: Qt.InputMethodHint)¶
- setLayout(self, a0: QLayout)¶
- setLayoutDirection(self, direction: Qt.LayoutDirection)¶
- setLocale(self, locale: QLocale)¶
- setMask(self, a0: QBitmap)¶
- setMask(self, a0: QRegion) None
- setMaximumHeight(self, maxh: int)¶
- setMaximumSize(self, maxw: int, maxh: int)¶
- setMaximumSize(self, s: QSize) None
- setMaximumWidth(self, maxw: int)¶
- setMinimumHeight(self, minh: int)¶
- setMinimumSize(self, minw: int, minh: int)¶
- setMinimumSize(self, s: QSize) None
- setMinimumWidth(self, minw: int)¶
- setMouseTracking(self, enable: bool)¶
- setObjectName(self, name: str)¶
- setPalette(self, a0: QPalette)¶
- setParent(self, parent: QWidget)¶
- setParent(self, parent: QWidget, f: Qt.WindowType) None
- setProperty(self, name: str, value: Any) bool ¶
- setScreen(self, a0: QScreen)¶
- setShortcutAutoRepeat(self, id: int, enabled: bool = True)¶
- setShortcutEnabled(self, id: int, enabled: bool = True)¶
- setSizeIncrement(self, w: int, h: int)¶
- setSizeIncrement(self, s: QSize) None
- setSizePolicy(self, a0: QSizePolicy)¶
- setSizePolicy(self, hor: QSizePolicy.Policy, ver: QSizePolicy.Policy) None
- setStatusTip(self, a0: str)¶
- setStyle(self, a0: QStyle)¶
- setStyleSheet(self, styleSheet: str)¶
- setTabOrder(a0: QWidget, a1: QWidget)¶
- setTabletTracking(self, enable: bool)¶
- setToolTip(self, a0: str)¶
- setToolTipDuration(self, msec: int)¶
- setUpdatesEnabled(self, enable: bool)¶
- setVisible(self, visible: bool)¶
- setWhatsThis(self, a0: str)¶
- setWindowFilePath(self, filePath: str)¶
- setWindowFlag(self, a0: Qt.WindowType, on: bool = True)¶
- setWindowFlags(self, type: Qt.WindowType)¶
- setWindowIcon(self, icon: QIcon)¶
- setWindowIconText(self, a0: str)¶
- setWindowModality(self, windowModality: Qt.WindowModality)¶
- setWindowModified(self, a0: bool)¶
- setWindowOpacity(self, level: float)¶
- setWindowRole(self, a0: str)¶
- setWindowState(self, state: Qt.WindowState)¶
- setWindowTitle(self, a0: str)¶
- set_cursor(cursor)¶
Set the current cursor.
This may have no effect if the backend does not display anything.
If required by the backend, this method should trigger an update in the backend event loop after the cursor is set, as this method may be called e.g. before a long-running task during which the GUI is not updated.
- cursor
Cursors
The cursor to display over the canvas. Note: some backends may change the cursor for the entire window.
- cursor
- set_window_title(title)¶
[Deprecated] Set the title text of the window containing the figure. Note that this has no effect if there is no window (e.g., a PS backend).
Deprecated since version 3.4: Use
FigureManagerBase.set_window_title
or GUI-specific methods instead.
- show(self)¶
- showEvent(self, a0: QShowEvent)¶
- showFullScreen(self)¶
- showMaximized(self)¶
- showMinimized(self)¶
- showNormal(self)¶
- signalsBlocked(self) bool ¶
- size(self) QSize ¶
- sizeIncrement(self) QSize ¶
- sizePolicy(self) QSizePolicy ¶
- stackUnder(self, a0: QWidget)¶
- startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int ¶
- start_event_loop(timeout=0)¶
Start a blocking event loop.
Such an event loop is used by interactive functions, such as
ginput
andwaitforbuttonpress
, to wait for events.The event loop blocks until a callback function triggers
stop_event_loop
, or timeout is reached.If timeout is 0 or negative, never timeout.
Only interactive backends need to reimplement this method and it relies on
flush_events
being properly implemented.Interactive backends should implement this in a more native way.
- staticMetaObject = <PyQt6.QtCore.QMetaObject object>¶
- statusTip(self) str ¶
- stop_event_loop(event=None)¶
Stop the current blocking event loop.
Interactive backends need to reimplement this to match
start_event_loop
- style(self) QStyle ¶
- styleSheet(self) str ¶
- supports_blit = True¶
- switch_backends(FigureCanvasClass)¶
Instantiate an instance of FigureCanvasClass
This is used for backend switching, e.g., to instantiate a FigureCanvasPS from a FigureCanvasGTK. Note, deep copying is not done, so any changes to one of the instances (e.g., setting figure size or line props), will be reflected in the other
- tabletEvent(self, a0: QTabletEvent)¶
- testAttribute(self, attribute: Qt.WidgetAttribute) bool ¶
- thread(self) QThread ¶
- timerEvent(self, a0: QTimerEvent)¶
- toolTip(self) str ¶
- toolTipDuration(self) int ¶
- tostring_argb()¶
Get the image as ARGB
bytes
.draw
must be called at least once before this function will work and to update the renderer for any subsequent changes to the Figure.
- tostring_rgb()¶
Get the image as RGB
bytes
.draw
must be called at least once before this function will work and to update the renderer for any subsequent changes to the Figure.
- tr(sourceText: str, disambiguation: typing.Optional[str] = None, n: int = - 1) str ¶
- underMouse(self) bool ¶
- ungrabGesture(self, type: Qt.GestureType)¶
- unsetCursor(self)¶
- unsetLayoutDirection(self)¶
- unsetLocale(self)¶
- update(self)¶
- update(self, a0: QRect) None
- update(self, a0: QRegion) None
- update(self, ax: int, ay: int, aw: int, ah: int) None
- updateGeometry(self)¶
- updateMicroFocus(self, query: Qt.InputMethodQuery = Qt.ImQueryAll)¶
- updatesEnabled(self) bool ¶
- visibleRegion(self) QRegion ¶
- whatsThis(self) str ¶
- wheelEvent(self, a0: QWheelEvent)¶
- width(self) int ¶
- widthMM(self) int ¶
- winId(self) PyQt6.sip.voidptr ¶
- window(self) QWidget ¶
- windowFilePath(self) str ¶
- windowFlags(self) Qt.WindowType ¶
- windowHandle(self) QWindow ¶
- windowIcon(self) QIcon ¶
- windowIconChanged¶
windowIconChanged(self, icon: QIcon) [signal]
- windowIconText(self) str ¶
- windowIconTextChanged¶
windowIconTextChanged(self, iconText: str) [signal]
- windowModality(self) Qt.WindowModality ¶
- windowOpacity(self) float ¶
- windowRole(self) str ¶
- windowState(self) Qt.WindowState ¶
- windowTitle(self) str ¶
- windowTitleChanged¶
windowTitleChanged(self, title: str) [signal]
- windowType(self) Qt.WindowType ¶
- x(self) int ¶
- y(self) int ¶
- class schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.ConfWheelPlot(*args, bin_size=0.2617993877991494, **kwargs)¶
Bases:
schrodinger.ui.qt.radial_plot.RadialRingHistogram
- COLOR_LOW = '#89ec08'¶
- COLOR_HIGH = '#0002df'¶
- DEFAULT_BIN_SIZE = 0.2617993877991494¶
- DEFAULT_PLOT_COLORBAR = True¶
- DEFAULT_COLOR_HIGH_FREQ = None¶
- TICK_PADDING = 6¶
- COLORBAR_PADDING = 0.2¶
- COLORBAR_SHRINK = 0.75¶
- dihedralAslSelected¶
- __init__(*args, bin_size=0.2617993877991494, **kwargs)¶
Initialize the histogram
- Parameters
figure (smatplotlib.SmatplotlibCanvas) – the canvas to plot the figure on
- drawPlot(plot_colorbar=True, color_high_freq=None)¶
Clear the current figure and plot the radial ring histogram using the torsion angle data set in setRingData
- Parameters
plot_colorbar (bool) – whether to plot the colorbar alongside the plot
color_high_freq (Union[None, float]) – the frequency to correspond to the strongest color on the color map, if given as None this will be dynamically set to the largest frequency in the given data
- drawTicks()¶
Set the y-tick labels on the polar plot to the ring_types set from setRingData
- getSectorAnnotation(sector)¶
Get the text that should be displayed as the annotation for the given sector
- Parameters
sector (Sector) – the sector in questions
- Returns
the annotation
- Return type
str
- shouldShowSectorAnnotation(sector)¶
Whether the given sector should show an annotation
- Parameters
sector (Sector) – the sector in question
- Returns
whether to display the annotation
- Return type
bool
- populatePlot(labels, result_by_ring, dihedral_asls)¶
Populates plot with data, saves reference to dihedral aids and ring data, and finally plot the data on the figure.
- onSectorClicked(sector)¶
- 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]
- getSectorAnnotationLoc(sector)¶
Get the absolute location of the annotation to be displayed for the given sector in polar coordinates
- Parameters
sector (Sector) – the sector in question
- Returns
A tuple of (radius, theta) of where the annotation should be placed
- Return type
Tuple[float, float]
- inherits(self, classname: str) bool ¶
- initFigure()¶
Clear and initialize the internal matplotlib figure
- installEventFilter(self, a0: QObject)¶
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- isWidgetType(self) bool ¶
- isWindowType(self) bool ¶
- killTimer(self, id: int)¶
- metaObject(self) QMetaObject ¶
- mouseRightButtonClicked¶
- 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)¶
- sectorClicked¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setObjectName(self, name: str)¶
- setParent(self, a0: QObject)¶
- setProperty(self, name: str, value: Any) bool ¶
- setRingData(ring_types, ring_data)¶
Set the data associated with each ring and the labels that are used for each ring in the plot.
NOTE: len(ring_types) must equal len(ring_data)
- setSectorData(sector_data, sector_width)¶
Set the relevant information regarding data for each sector
- 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 ¶
- class schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.ColorFreqRange(value)¶
Bases:
enum.Enum
An enumeration.
- MAX_FROM_DATA = 1¶
- HALF = 2¶
- FULL = 3¶
- static getMaxColorFreq(color_freq)¶
Get the associated frequency value :param color_freq: the ColorFreqRange enum value :type color_freq: ColorFreqRange
- Returns
the associated frequency
- Return type
float
- class schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.ConfWheelPlotModel(*args, _param_type=<object object>, **kwargs)¶
Bases:
schrodinger.models.parameters.CompoundParam
- show_color_scale: bool¶
Base class for all Param classes. A Param is a descriptor for storing data, which means that a single Param instance will manage the data values for multiple instances of the class that owns it. Example:
class Coord(CompoundParam): x: int y: int
An instance of the Coord class can be created normally, and Params can be accessed as normal attributes:
coord = Coord() coord.x = 4
When a Param value is set, the
valueChanged
signal is emitted. Params can be serialized and deserialized to and from JSON. Params can also be nested:class Atom(CompoundParam): coord: Coord element: str
- color_freq_range¶
- DataClass¶
This class can be used to declare a public attribute on a
CompoundParam
. Declared public attributes can be used without error.Example usage:
class Coord(CompoundParam): x: int y: int note = NonParamAttribute() coord = Coord() coord.note = "hello" # No error
- __init__(default_value=<object object>, _param_type=<object object>, **kwargs)¶
- classmethod addSubParam(name, param, update_owner=True)¶
- blockSignals(self, b: bool) bool ¶
- block_signal_propagation()¶
- childEvent(self, a0: QChildEvent)¶
- children(self) List[QObject] ¶
- color_freq_rangeChanged¶
- color_freq_rangeReplaced¶
- classmethod configureParam()¶
Override this class method to set up the abstract param class (e.g. setParamReference on child params.)
- connectNotify(self, signal: QMetaMethod)¶
- customEvent(self, a0: QEvent)¶
- classmethod defaultValue()¶
Returns the default value for this abstract param:
default_atom = Atom.defaultValue() assert Atom.coord.x == 0
- 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]
- classmethod fromJson(json_obj)¶
A factory method which constructs a new object from a given dict loaded from a json string or file.
- Parameters
json_obj (dict) – A json-loaded dictionary to create an object from.
- Returns
An instance of this class.
- Return type
cls
- classmethod fromJsonImplementation(json_dict)¶
Sets the value of this compound param value object from a JSON dict.
Warning
This should never be called directly.
- getAbstractParam()¶
Return the corresponding abstract param for this instance.
- classmethod getJsonBlacklist()¶
Override to customize what params are serialized.
Implementations should return a list of abstract params that should be omitted from serialization.
- ..NOTE
Returned abstract params must be direct child params of
cls
, e.g.cls.name
, notcls.coord.x
.
- classmethod getParamSignal(obj, signal_type='Changed')¶
- classmethod getParamValue(obj)¶
Enables access to a param value on a compound param via an abstract param reference:
a = Atom() assert Atom.coord.x.getParamValue(a) == 0 # ints default to 0 a.coord.x = 3 assert Atom.coord.x.getParamValue(a) == 3
- Parameters
param (CompoundParam) – The owner param to get a param value from
- classmethod getSubParam(name)¶
Get the value of a subparam using the string name:
c = Coord() assert c.getSubParam('x') == 0
Note
Using the string name to access params is generally discouraged, but can be useful for serializing/deserializing param data.
- Parameters
name (str) – The name of the subparam to get the value for.
- classmethod getSubParams()¶
Return a dictionary mapping subparam names to their values.
- getTypeHint()¶
- get_version()¶
Method to get the version of a particular object. Defaults to the current version of mmshare. This class can be overridden for custom versioning behavior.
- inherits(self, classname: str) bool ¶
- initAbstract()¶
- initConcrete()¶
Override to customize initialization of concrete params.
- initializeValue()¶
Override to dynamically set up the default value of the param. Useful for default values that are determined at runtime. This is called any time the param is reset.
- installEventFilter(self, a0: QObject)¶
- classmethod isAbstract()¶
Whether the param is an “abstract” param.
- isDefault()¶
Whether the current value of this instance matches the default value.
- 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]
- classmethod owner()¶
Get the owner of the param:
# Can be called on an abstract param: assert Coord.x.owner() == Coord # ...or on an instance of a CompoundParam a = Atom() assert a.coord.owner() == a
- classmethod ownerChain()¶
Returns a list of param owners starting from the toplevel param and ending with self. Examples:
foo.bar.atom.coord.ownerChain()
will return[foo, bar, atom, coord]
where every item is a concrete param.Foo.bar.atom.coord.x.ownerChain()
will return[Foo, Foo.bar, Foo.atom.coord, Foo.atom.coord.x]
where every item is an abstract params.
- classmethod paramName()¶
Get the name of the param:
# Can be called on an abstract param: print(Coord.x.paramName()) # 'x' # ...or on an instance of a CompoundParam a = Atom() a.coord.paramName() # 'coord'
- 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)¶
- reset(*abstract_params)¶
Resets this compound param to its default value:
class Line(CompoundParam): start = Coord(x=1, y=2) end = Coord(x=4, y=5) line = Line() line.start.x = line.end.x = 10 assert line.start.x == line.end.x == 10 line.reset() assert line.start.x == 1 assert line.end.x == 4
Any number of abstract params may be passed in to perform a partial reset of only the specified params:
line.start.x = line.end.x = 10 line.reset(Line.start.x) # resets just start.x assert line.start.x == 1 assert line.end.x == 10 line.reset(Line.end) # resets the entire end point assert line.end.x == 4 line.start.y = line.end.y = 10 line.reset(Line.start.y, Line.end.y) # resets the y-coord of both assert line.start.y == 2 assert line.end.y == 5
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setObjectName(self, name: str)¶
- classmethod setParamValue(obj, value)¶
Set the value of a param on an object by specifying the instance and the value:
# Setting the param value of a basic param a = Atom() Atom.coord.x.setParamValue(a, 5) assert a.coord.x == 5 # setParamValue can also be used to set the value of CompoundParams c = Coord() c.x = 10 atom.coord.setParamValue(a, c) assert atom.coord.x == 10
- Parameters
param – The owner param to set a subparam value of.
value – The value to set the subparam value to.
- setParent(self, a0: QObject)¶
- setProperty(self, name: str, value: Any) bool ¶
- classmethod setReference(param1, param2)¶
Call this class method from configureParam to indicate that two params should be kept in sync. The initial values will start with the default value of
param1
. Example:class Square(CompoundParam): width: float = 5 height: float = 10 @classmethod def configureParam(cls): super().configureParam() cls.setReference(cls.width, cls.height) square = Square() assert square.width == square.height == 5 # Default value of width # takes priority square.height = 7 assert square.width == square.height == 7 square.width = 6 assert square.width == square.height == 6
- Parameters
param1 – The first abstract param to keep synced
param2 – The second abstract param. After instantiation, this param will take on the value of param1.
- setValue(value=None, **kwargs)¶
Set the value of this
CompoundParam
to matchvalue
.- Parameters
value – The value to set this
CompoundParam
to. It should be the same type as thisCompoundParam
.kwargs – For internal use only.
- show_color_scaleChanged¶
- show_color_scaleReplaced¶
- signalsBlocked(self) bool ¶
- skip_eq_check()¶
- startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int ¶
- staticMetaObject = <PyQt6.QtCore.QMetaObject object>¶
- thread(self) QThread ¶
- timerEvent(self, a0: QTimerEvent)¶
- toDict()¶
Return a dictionary version of this
CompoundParam
. The returned dictionary is fully nested and contains noCompoundParam
instancesa = Atom() a_dict = a.toDict() assert a_dict['coord']['x'] == 0 assert a_dict['coord'] == {'x':0, 'y':0}
- toJson(_mark_version=True)¶
Create and returns a data structure made up of jsonable items.
- Return type
An instance of one the classes from NATIVE_JSON_DATATYPES
- toJsonImplementation()¶
Returns a JSON representation of this value object.
Warning
This should never be called directly.
- tr(sourceText: str, disambiguation: typing.Optional[str] = None, n: int = - 1) str ¶
- valueChanged¶
- class schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.ConfWheelPlotPanel(plot_manager, parent=None)¶
Bases:
schrodinger.trajectory.trajectory_gui_dir.plots.BaseAdvancedPlotPanel
- SHORTCUT_PREFIX = 'Wheel'¶
- ui_module = <module 'schrodinger.trajectory.trajectory_gui_dir.conf_wheel_plot_panel_ui' from '/scr/buildbot/savedbuilds/2023-3/NB/build-125/internal/lib/python3.8/site-packages/schrodinger/trajectory/trajectory_gui_dir/conf_wheel_plot_panel_ui.py'>¶
- model_class¶
alias of
schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.ConfWheelPlotModel
- __init__(plot_manager, parent=None)¶
- initSetUp()¶
Creates widget from
ui
and stores itui_widget
.Suggested subclass use: create and initialize subwidgets, and connect signals.
- initLayOut()¶
@overrides: widgetmixins.InitMixin
- defineMappings()¶
Override this in the subclass to define mappings. Should return a list of tuples [(<target>, <param>)]. Targets can be:
a basic widget, like
QLineEdit
orQComboBox
a custom object that inherits
MapperMixin
orTargetMixin
a
TargetSpec
instancea slot
For common widgets, standard signals and getter/setter methods will be used, as defined in
mappers._get_default_access_names()
.For more fine-grained custom control, instantiate a
TargetSpec
object, which allows custom setters, getters, and signals to be specified.Supplying a slot as the first element of the tuple is equivalent to providing
TargetSpec(slot=my_slot)
.Note that all target slots are triggered on
setModel()
as well as in response to the specified signal.The param is an abstract param reference, e.g. MyModel.my_param.
Example:
def defineMappings(self): combo = self.style_combo return [(self.name_le, MyModel.name), (TargetSpec(combo, getter=combo.currentText, setter=combo.setCurrentText), MyModel.style), (self.coord_widget, MyModel.coord), (self._onASLTextChanged, MyModel.asl_text)]
- getSignalsAndSlots(model)¶
Override this method to specify signal and slot pairs that need to be connected/disconnected whenever the model instance is switched using setModel. The model instance is provided as an argument so that instance-specific signals can be used, but any pairs of signals and slots may be returned from this method.
- Returns
a list of 2-tuples where each tuple is a signal, slot pair
- setDisplayLabel(graph_type)¶
- mousePressEvent(self, a0: QMouseEvent)¶
- onPlotSettingsChanged()¶
- APPLY_LEGACY_STYLESHEET = True¶
- APPLY_PANELX_STYLESHEET = False¶
- DrawChildren = 2¶
- DrawWindowBackground = 1¶
- IgnoreMask = 4¶
- PRESETS_FEATURE_FLAG = False¶
- class PaintDeviceMetric(value)¶
Bases:
enum.Enum
An enumeration.
- PdmWidth = 1¶
- PdmHeight = 2¶
- PdmWidthMM = 3¶
- PdmHeightMM = 4¶
- PdmNumColors = 5¶
- PdmDepth = 6¶
- PdmDpiX = 7¶
- PdmDpiY = 8¶
- PdmPhysicalDpiX = 9¶
- PdmPhysicalDpiY = 10¶
- PdmDevicePixelRatio = 11¶
- PdmDevicePixelRatioScaled = 12¶
- PdmDepth = 6¶
- PdmDevicePixelRatio = 11¶
- PdmDevicePixelRatioScaled = 12¶
- PdmDpiX = 7¶
- PdmDpiY = 8¶
- PdmHeight = 2¶
- PdmHeightMM = 4¶
- PdmNumColors = 5¶
- PdmPhysicalDpiX = 9¶
- PdmPhysicalDpiY = 10¶
- PdmWidth = 1¶
- PdmWidthMM = 3¶
- class RenderFlag(value)¶
Bases:
enum.Flag
An enumeration.
- DrawWindowBackground = 1¶
- DrawChildren = 2¶
- IgnoreMask = 4¶
- SHOW_AS_WINDOW = True¶
- acceptDrops(self) bool ¶
- property accepted¶
- accessibleDescription(self) str ¶
- accessibleName(self) str ¶
- actionEvent(self, a0: QActionEvent)¶
- actions(self) List[QAction] ¶
- activateWindow(self)¶
- addAction(self, action: QAction)¶
- addActions(self, actions: Iterable[QAction])¶
- adjustSize(self)¶
- autoFillBackground(self) bool ¶
- backgroundRole(self) QPalette.ColorRole ¶
- baseSize(self) QSize ¶
- blockSignals(self, b: bool) bool ¶
- changeEvent(self, a0: QEvent)¶
- childAt(self, p: QPoint) QWidget ¶
- childAt(self, ax: int, ay: int) QWidget
- childEvent(self, a0: QChildEvent)¶
- children(self) List[QObject] ¶
- childrenRect(self) QRect ¶
- childrenRegion(self) QRegion ¶
- clearFocus(self)¶
- clearMask(self)¶
- close(self) bool ¶
- closeEvent(event)¶
Ensures proper handling of OK, Cancel, and [X] button clicks
- colorCount(self) int ¶
- connectNotify(self, signal: QMetaMethod)¶
- contentsMargins(self) QMargins ¶
- contentsRect(self) QRect ¶
- contextMenuEvent(self, a0: QContextMenuEvent)¶
- contextMenuPolicy(self) Qt.ContextMenuPolicy ¶
- create(self, window: PyQt6.sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)¶
- createWindowContainer(window: QWindow, parent: typing.Optional[QWidget] = None, flags: Qt.WindowType = Qt.WindowFlags()) QWidget ¶
- cursor(self) QCursor ¶
- customContextMenuRequested¶
customContextMenuRequested(self, pos: QPoint) [signal]
- customEvent(self, a0: QEvent)¶
- debug()¶
- deleteLater(self)¶
- depth(self) int ¶
- destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
- destroyed¶
destroyed(self, object: typing.Optional[QObject] = None) [signal]
- devType(self) int ¶
- devicePixelRatio(self) float ¶
- devicePixelRatioF(self) float ¶
- devicePixelRatioFScale() float ¶
- disconnect(a0: QMetaObject.Connection) bool ¶
- disconnect(self) None
- disconnectNotify(self, signal: QMetaMethod)¶
- dragEnterEvent(self, a0: QDragEnterEvent)¶
- dragLeaveEvent(self, a0: QDragLeaveEvent)¶
- dragMoveEvent(self, a0: QDragMoveEvent)¶
- dropEvent(self, a0: QDropEvent)¶
- dumpObjectInfo(self)¶
- dumpObjectTree(self)¶
- dynamicPropertyNames(self) List[QByteArray] ¶
- effectiveWinId(self) PyQt6.sip.voidptr ¶
- ensurePolished(self)¶
- enterEvent(self, event: QEnterEvent)¶
- error(*args, **kwargs)¶
Shows a popup error message box. For parameter documentation see
messagebox.MessageBox
.
- event(self, a0: QEvent) bool ¶
- eventFilter(self, a0: QObject, a1: QEvent) bool ¶
- find(a0: PyQt6.sip.voidptr) QWidget ¶
- 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]
- focusInEvent(self, a0: QFocusEvent)¶
- focusNextChild(self) bool ¶
- focusNextPrevChild(self, next: bool) bool ¶
- focusOutEvent(self, a0: QFocusEvent)¶
- focusPolicy(self) Qt.FocusPolicy ¶
- focusPreviousChild(self) bool ¶
- focusProxy(self) QWidget ¶
- focusWidget(self) QWidget ¶
- font(self) QFont ¶
- fontInfo(self) QFontInfo ¶
- fontMetrics(self) QFontMetrics ¶
- foregroundRole(self) QPalette.ColorRole ¶
- forgetMessageBoxResponse(key)¶
Forgets any previously saved response that was stored via a save_response_key.
- Parameters
key – the key for the response to forget
- frameGeometry(self) QRect ¶
- frameSize(self) QSize ¶
- geometry(self) QRect ¶
- getModel()¶
- classmethod getPanelInstance(create=True)¶
Return the singleton instance of this panel, creating one if necessary.
- Parameters
create (bool) – Whether to create an instance of the panel if none exists
- Returns
instance of this panel.
- Return type
PanelMixin
- grab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(- 1, - 1))) QPixmap ¶
- grabGesture(self, type: Qt.GestureType, flags: Qt.GestureFlag = Qt.GestureFlags())¶
- grabKeyboard(self)¶
- grabMouse(self)¶
- grabMouse(self, a0: Union[QCursor, Qt.CursorShape]) None
- grabShortcut(self, key: Union[QKeySequence, QKeySequence.StandardKey, str, int], context: Qt.ShortcutContext = Qt.WindowShortcut) int ¶
- graphicsEffect(self) QGraphicsEffect ¶
- graphicsProxyWidget(self) QGraphicsProxyWidget ¶
- hasFocus(self) bool ¶
- hasHeightForWidth(self) bool ¶
- hasMouseTracking(self) bool ¶
- hasTabletTracking(self) bool ¶
- height(self) int ¶
- heightForWidth(self, a0: int) int ¶
- heightMM(self) int ¶
- hide(self)¶
- hideEvent(self, a0: QHideEvent)¶
- info(*args, **kwargs)¶
Shows a popup information message box. For parameter documentation see
messagebox.MessageBox
.
- inherits(self, classname: str) bool ¶
- initFinalize()¶
Suggested subclass use: perform any remaining initialization.
- initPainter(self, painter: QPainter)¶
- initSetDefaults()¶
@overrides: widgetmixins.InitMixin
- initSetOptions()¶
Suggested subclass use: set instance variables, excluding layouts and subwidgets. Also use here to (optionally) apply the legacy stylesheet spacing settings (PANEL-19101).
- inputMethodEvent(self, a0: QInputMethodEvent)¶
- inputMethodHints(self) Qt.InputMethodHint ¶
- inputMethodQuery(self, a0: Qt.InputMethodQuery) Any ¶
- insertAction(self, before: QAction, action: QAction)¶
- insertActions(self, before: QAction, actions: Iterable[QAction])¶
- installEventFilter(self, a0: QObject)¶
- isActiveWindow(self) bool ¶
- isAncestorOf(self, child: QWidget) bool ¶
- isEnabled(self) bool ¶
- isEnabledTo(self, a0: QWidget) bool ¶
- isFullScreen(self) bool ¶
- isHidden(self) bool ¶
- isLeftToRight(self) bool ¶
- isMaximized(self) bool ¶
- isMinimized(self) bool ¶
- isModal(self) bool ¶
- isRightToLeft(self) bool ¶
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- isVisible(self) bool ¶
- isVisibleTo(self, a0: QWidget) bool ¶
- isWidgetType(self) bool ¶
- isWindow(self) bool ¶
- isWindowModified(self) bool ¶
- isWindowType(self) bool ¶
- keyPressEvent(self, a0: QKeyEvent)¶
- keyReleaseEvent(self, a0: QKeyEvent)¶
- keyboardGrabber() QWidget ¶
- killTimer(self, id: int)¶
- layout(self) QLayout ¶
- layoutDirection(self) Qt.LayoutDirection ¶
- leaveEvent(self, a0: QEvent)¶
- locale(self) QLocale ¶
- logicalDpiX(self) int ¶
- logicalDpiY(self) int ¶
- lower(self)¶
- makeInitialModel()¶
- mapFrom(self, a0: QWidget, a1: QPoint) QPoint ¶
- mapFrom(self, a0: QWidget, a1: QPointF) QPointF
- mapFromGlobal(self, a0: QPoint) QPoint ¶
- mapFromGlobal(self, a0: QPointF) QPointF
- mapFromParent(self, a0: QPoint) QPoint ¶
- mapFromParent(self, a0: QPointF) QPointF
- mapTo(self, a0: QWidget, a1: QPoint) QPoint ¶
- mapTo(self, a0: QWidget, a1: QPointF) QPointF
- mapToGlobal(self, a0: QPoint) QPoint ¶
- mapToGlobal(self, a0: QPointF) QPointF
- mapToParent(self, a0: QPoint) QPoint ¶
- mapToParent(self, a0: QPointF) QPointF
- mappedParams()¶
Return a list of the abstract params that are mapped to.
- mask(self) QRegion ¶
- maximumHeight(self) int ¶
- maximumSize(self) QSize ¶
- maximumWidth(self) int ¶
- metaObject(self) QMetaObject ¶
- metric(self, a0: QPaintDevice.PaintDeviceMetric) int ¶
- minimumHeight(self) int ¶
- minimumSize(self) QSize ¶
- minimumSizeHint(self) QSize ¶
- minimumWidth(self) int ¶
- property model¶
- mouseDoubleClickEvent(self, a0: QMouseEvent)¶
- mouseGrabber() QWidget ¶
- mouseMoveEvent(self, a0: QMouseEvent)¶
- mouseReleaseEvent(self, a0: QMouseEvent)¶
- move(self, a0: QPoint)¶
- move(self, ax: int, ay: int) None
- moveEvent(self, a0: QMoveEvent)¶
- moveToThread(self, thread: QThread)¶
- nativeEvent(self, eventType: QByteArray, message: PyQt6.sip.voidptr) Tuple[bool, PyQt6.sip.voidptr] ¶
- nativeParentWidget(self) QWidget ¶
- nextInFocusChain(self) QWidget ¶
- normalGeometry(self) QRect ¶
- objectName(self) str ¶
- objectNameChanged¶
objectNameChanged(self, objectName: str) [signal]
- overrideWindowFlags(self, type: Qt.WindowType)¶
- overrideWindowState(self, state: Qt.WindowState)¶
- paintEngine(self) QPaintEngine ¶
- paintEvent(self, a0: QPaintEvent)¶
- paintingActive(self) bool ¶
- palette(self) QPalette ¶
- classmethod panel(blocking=False, modal=False, finished_callback=None)¶
Open an instance of this class.
For full argument documentation, see
ExecutionMixin.run
.
- parent(self) QObject ¶
- parentWidget(self) QWidget ¶
- physicalDpiX(self) int ¶
- physicalDpiY(self) int ¶
- pos(self) QPoint ¶
- previousInFocusChain(self) QWidget ¶
- 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.
- question(*args, **kwargs)¶
Shows a popup question message box. For parameter documentation see
messagebox.QuestionMessageBox
.
- raise_(self)¶
- receivers(self, signal: PYQT_SIGNAL) int ¶
- rect(self) QRect ¶
- releaseKeyboard(self)¶
- releaseMouse(self)¶
- releaseShortcut(self, id: int)¶
- removeAction(self, action: QAction)¶
- removeEventFilter(self, a0: QObject)¶
- render(self, target: QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlag = QWidget.RenderFlags(QWidget.DrawWindowBackground | QWidget.DrawChildren))¶
- render(self, painter: QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlag = QWidget.RenderFlags(QWidget.DrawWindowBackground | QWidget.DrawChildren)) None
- repaint(self)¶
- repaint(self, x: int, y: int, w: int, h: int) None
- repaint(self, a0: QRect) None
- repaint(self, a0: QRegion) None
- reportValidation(results)¶
Present validation messages to the user. This is an implmentation of the
ValidationMixin
interface and does not need to be called directly.This method assumes that
error
andquestion
methods have been defined in the subclass, as in e.g.widget_mixins.MessageBoxMixin
.- Parameters
results (
validation.ValidationResults
) – Set of validation results generated byvalidate
- Returns
if True, there were no validation errors and the user decided to continue despite any warnings. If False, there was at least one validation error or the user decided to abort when faced with a warning.
- resetMappedParams()¶
- resize(self, a0: QSize)¶
- resize(self, w: int, h: int) None
- resizeEvent(self, a0: QResizeEvent)¶
- restoreGeometry(self, geometry: QByteArray) bool ¶
- run(blocking=False, modal=False, finished_callback=None)¶
Show this widget, while optionally blocking, making the widget window modal, and registering a callback for when the widget is closed again.
- Parameters
blocking (bool) – if True, block progress in the calling method until the widget is closed again.
modal (bool) – if True, open this widget as window modal. Otherwise, open this widget as nonmodal.
finished_callback (a callable object) – an object that will be called with no arguments when this widget is closed.
- runAllSlots()¶
- runValidation(silent=False, validate_children=True, stop_on_fail=True)¶
Runs validation and reports the results (unless run silently).
- Parameters
silent (bool) – run without any reporting (i.e. error messages to the user). This is useful if we want to programmatically test validity. Changes return value of this method from
ValidationResults
to a boolean.validate_children (bool) – run validation on all child objects. See
_validateChildren
for documentation on what this entails.stop_on_fail (bool) – stop validation when first failure is encountered
- Returns
if silent is False, returns the validation results. If silent is True, returns a boolean generated by
reportValidation
.- Return type
ValidationResults
or bool
- saveGeometry(self) QByteArray ¶
- screen(self) QScreen ¶
- scroll(self, dx: int, dy: int)¶
- scroll(self, dx: int, dy: int, a2: QRect) None
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setAcceptDrops(self, on: bool)¶
- setAccessibleDescription(self, description: str)¶
- setAccessibleName(self, name: str)¶
- setAttribute(self, attribute: Qt.WidgetAttribute, on: bool = True)¶
- setAutoFillBackground(self, enabled: bool)¶
- setBackgroundRole(self, a0: QPalette.ColorRole)¶
- setBaseSize(self, basew: int, baseh: int)¶
- setBaseSize(self, s: QSize) None
- setContentsMargins(self, left: int, top: int, right: int, bottom: int)¶
- setContentsMargins(self, margins: QMargins) None
- setContextMenuPolicy(self, policy: Qt.ContextMenuPolicy)¶
- setCursor(self, a0: Union[QCursor, Qt.CursorShape])¶
- setDefaults()¶
@overrides: af2.App
- setDisabled(self, a0: bool)¶
- setEnabled(self, a0: bool)¶
- setFixedHeight(self, h: int)¶
- setFixedSize(self, a0: QSize)¶
- setFixedSize(self, w: int, h: int) None
- setFixedWidth(self, w: int)¶
- setFocus(self)¶
- setFocus(self, reason: Qt.FocusReason) None
- setFocusPolicy(self, policy: Qt.FocusPolicy)¶
- setFocusProxy(self, a0: QWidget)¶
- setFont(self, a0: QFont)¶
- setForegroundRole(self, a0: QPalette.ColorRole)¶
- setGeometry(self, a0: QRect)¶
- setGeometry(self, ax: int, ay: int, aw: int, ah: int) None
- setGraphicsEffect(self, effect: QGraphicsEffect)¶
- setHidden(self, hidden: bool)¶
- setInputMethodHints(self, hints: Qt.InputMethodHint)¶
- setLayout(self, a0: QLayout)¶
- setLayoutDirection(self, direction: Qt.LayoutDirection)¶
- setLocale(self, locale: QLocale)¶
- setMask(self, a0: QBitmap)¶
- setMask(self, a0: QRegion) None
- setMaximumHeight(self, maxh: int)¶
- setMaximumSize(self, maxw: int, maxh: int)¶
- setMaximumSize(self, s: QSize) None
- setMaximumWidth(self, maxw: int)¶
- setMinimumHeight(self, minh: int)¶
- setMinimumSize(self, minw: int, minh: int)¶
- setMinimumSize(self, s: QSize) None
- setMinimumWidth(self, minw: int)¶
- setModel(model)¶
Sets the model object for the mapper. Disconnects the old model, if one is set, and connects the new model. Pass in None to have no model set.
- Parameters
model – the model instance or None
- setModelWithoutSlots(model)¶
This is called when this MapperMixin is a sub-widget of a parent MapperMixin. Since the slots will all be called at the end of the parent setModel, they shouldn’t be called during the sub-widget’s setModel.
- setMouseTracking(self, enable: bool)¶
- setObjectName(self, name: str)¶
- setPalette(self, a0: QPalette)¶
- setParent(self, parent: QWidget)¶
- setParent(self, parent: QWidget, f: Qt.WindowType) None
- setProperty(self, name: str, value: Any) bool ¶
- setScreen(self, a0: QScreen)¶
- setShortcutAutoRepeat(self, id: int, enabled: bool = True)¶
- setShortcutEnabled(self, id: int, enabled: bool = True)¶
- setSizeIncrement(self, w: int, h: int)¶
- setSizeIncrement(self, s: QSize) None
- setSizePolicy(self, a0: QSizePolicy)¶
- setSizePolicy(self, hor: QSizePolicy.Policy, ver: QSizePolicy.Policy) None
- setStatusTip(self, a0: str)¶
- setStyle(self, a0: QStyle)¶
- setStyleSheet(self, styleSheet: str)¶
- setTabOrder(a0: QWidget, a1: QWidget)¶
- setTabletTracking(self, enable: bool)¶
- setToolTip(self, a0: str)¶
- setToolTipDuration(self, msec: int)¶
- setUpdatesEnabled(self, enable: bool)¶
- setVisible(self, visible: bool)¶
- setWhatsThis(self, a0: str)¶
- setWidgetLayout()¶
Set the widget layout
- setWindowFilePath(self, filePath: str)¶
- setWindowFlag(self, a0: Qt.WindowType, on: bool = True)¶
- setWindowFlags(self, type: Qt.WindowType)¶
- setWindowFlagsForRun()¶
- setWindowIcon(self, icon: QIcon)¶
- setWindowIconText(self, a0: str)¶
- setWindowModality(self, windowModality: Qt.WindowModality)¶
- setWindowModified(self, a0: bool)¶
- setWindowOpacity(self, level: float)¶
- setWindowRole(self, a0: str)¶
- setWindowState(self, state: Qt.WindowState)¶
- setWindowTitle(self, a0: str)¶
- setting_model()¶
- show()¶
Override the show method to clear and previous value of self.accepted
- showEvent(self, a0: QShowEvent)¶
- showFullScreen(self)¶
- showMaximized(self)¶
- showMessageBox(*args, **kwargs)¶
Shows a popup message box. For parameter documentation see
messagebox.MessageBox
.
- showMinimized(self)¶
- showNormal(self)¶
- signalsBlocked(self) bool ¶
- size(self) QSize ¶
- sizeHint(self) QSize ¶
- sizeIncrement(self) QSize ¶
- sizePolicy(self) QSizePolicy ¶
- stackUnder(self, a0: QWidget)¶
- startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int ¶
- staticMetaObject = <PyQt6.QtCore.QMetaObject object>¶
- statusTip(self) str ¶
- style(self) QStyle ¶
- styleSheet(self) str ¶
- tabletEvent(self, a0: QTabletEvent)¶
- testAttribute(self, attribute: Qt.WidgetAttribute) bool ¶
- thread(self) QThread ¶
- timerEvent(self, a0: QTimerEvent)¶
- toolTip(self) str ¶
- toolTipDuration(self) int ¶
- tr(sourceText: str, disambiguation: typing.Optional[str] = None, n: int = - 1) str ¶
- underMouse(self) bool ¶
- ungrabGesture(self, type: Qt.GestureType)¶
- unsetCursor(self)¶
- unsetLayoutDirection(self)¶
- unsetLocale(self)¶
- update(self)¶
- update(self, a0: QRect) None
- update(self, a0: QRegion) None
- update(self, ax: int, ay: int, aw: int, ah: int) None
- updateGeometry(self)¶
- updateMicroFocus(self, query: Qt.InputMethodQuery = Qt.ImQueryAll)¶
- updatesEnabled(self) bool ¶
- visibleRegion(self) QRegion ¶
- warning(*args, **kwargs)¶
Shows a popup warning message box. For parameter documentation see
messagebox.MessageBox
.
- whatsThis(self) str ¶
- wheelEvent(self, a0: QWheelEvent)¶
- width(self) int ¶
- widthMM(self) int ¶
- winId(self) PyQt6.sip.voidptr ¶
- window(self) QWidget ¶
- windowFilePath(self) str ¶
- windowFlags(self) Qt.WindowType ¶
- windowHandle(self) QWindow ¶
- windowIcon(self) QIcon ¶
- windowIconChanged¶
windowIconChanged(self, icon: QIcon) [signal]
- windowIconText(self) str ¶
- windowIconTextChanged¶
windowIconTextChanged(self, iconText: str) [signal]
- windowModality(self) Qt.WindowModality ¶
- windowOpacity(self) float ¶
- windowRole(self) str ¶
- windowState(self) Qt.WindowState ¶
- windowTitle(self) str ¶
- windowTitleChanged¶
windowTitleChanged(self, title: str) [signal]
- windowType(self) Qt.WindowType ¶
- x(self) int ¶
- y(self) int ¶
- class schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.AbstractConfWheelPlotManager(panel, res_info)¶
Bases:
schrodinger.trajectory.trajectory_gui_dir.plots.AbstractAdvancedTrajectoryPlotManager
- PANEL_CLASS¶
alias of
schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.ConfWheelPlotPanel
- ABBREVIATION_TYPE = ''¶
- ANALYSIS_TYPE = None¶
- __init__(panel, res_info)¶
- createShortcutWidget(plot_panel)¶
Create and store reference to a shortcut widget for a given Advanced Plot
- Parameters
plot_panel (BaseAdvancedPlotPanel) – Plot panel that shortcut will launch
- Returns
Shortcut for the Advanced Plot
- Return type
- configureTask(task, st_asl)¶
Configure the specified task by assigning it the analysis mode, and assigning inputs based on the currently selected trajectory. Task’s taskDone signal is connected to self._onTaskEnded().
- getPlotType()¶
Returns what type of plot this class uses; used for grouping export data.
- getInitialPlotTitleAndTooltip(shortcut_title)¶
Return the plot title and tooltip for this plot.
- Returns
Plot title, Plot tooltip.
- Return type
(str, str or None)
- loadFromTask(task)¶
Load in results from the given task.
- Parameters
task (tasks.AbstractTask) – Task to get result data from.
- getDataForExport()¶
Return a list of row data to export to CSV or Excel.
- Returns
Data to be exported
- Return type
list(list)
- onDihedralAslSelected(dihedral_asl)¶
- saveImage()¶
Save a .png file of the plot
- drawPlot(plot_colorbar=True, color_high_freq=None)¶
Clear the data on the figure and plot based on the given settings
- Parameters
plot_colorbar (bool) – plot the colorbar alongside the wheel
color_high_freq (Union[None, float]) – the frequency to correspond to the strongest color on the color map
- blockSignals(self, b: bool) bool ¶
- childEvent(self, a0: QChildEvent)¶
- children(self) List[QObject] ¶
- connectNotify(self, signal: QMetaMethod)¶
- createAndDisplayMeasurement¶
- createPanel()¶
For advanced plots, creates an instance of a plot panel and returns it. For simple (panel-less) plots, returns None.
- customEvent(self, a0: QEvent)¶
- deleteLater(self)¶
- deletePlot¶
- destroyed¶
destroyed(self, object: typing.Optional[QObject] = None) [signal]
- disconnect(a0: QMetaObject.Connection) bool ¶
- disconnect(self) None
- disconnectNotify(self, signal: QMetaMethod)¶
- displayAsl¶
- displayFrameAndAsl¶
- dumpObjectInfo(self)¶
- dumpObjectTree(self)¶
- dynamicPropertyNames(self) List[QByteArray] ¶
- event(self, a0: QEvent) bool ¶
- eventFilter(self, a0: QObject, a1: QEvent) bool ¶
- exportToCSV(parent=None)¶
Export plot data to a CSV file
- exportToExcel(parent=None)¶
Export data to an .xls file
- 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]
- generateASL(aids)¶
Generates an ASL string selecting given atom IDs.
- Parameters
aids (Union[int, list(int)]) – Single atom id OR list of atom ids
- Returns
ASL which selects given atoms.
- Return type
str
- generateSettingsHash(settings_list)¶
Return a tuple that uniquely identifies this plot.
- Parameters
settings_list (list) – List of settings that can uniquely identify the plot. In addition to these, the plot class name and trajectory path will be added.
- Returns
Unique identifier for the plot.
- Return type
tuple
- getExportData()¶
Most panels export the same data whether export was selected from the plot panel or the main panel. Override this method to export different type of data when exporting from the parent panel, via the “Export Results…” button.
- getPlotTitle()¶
- getSettingsHash()¶
- inherits(self, classname: str) bool ¶
- installEventFilter(self, a0: QObject)¶
- isRunning()¶
Return True if the plot is still generating data.
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- isWidgetType(self) bool ¶
- isWindowType(self) bool ¶
- killTimer(self, id: int)¶
- metaObject(self) QMetaObject ¶
- moveToThread(self, thread: QThread)¶
- newDataAvailable¶
- 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 ¶
- showContextMenu(parent=None)¶
- showWarning¶
- signalsBlocked(self) bool ¶
- start()¶
- 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 ¶
- class schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.ConfSmallMoleculePlotManager(panel, res_info)¶
Bases:
schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.AbstractConfWheelPlotManager
- ANALYSIS_TYPE = 24¶
- ABBREVIATION_TYPE = 'molecule'¶
- PANEL_CLASS¶
alias of
schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.ConfWheelPlotPanel
- __init__(panel, res_info)¶
- blockSignals(self, b: bool) bool ¶
- childEvent(self, a0: QChildEvent)¶
- children(self) List[QObject] ¶
- configureTask(task, st_asl)¶
Configure the specified task by assigning it the analysis mode, and assigning inputs based on the currently selected trajectory. Task’s taskDone signal is connected to self._onTaskEnded().
- connectNotify(self, signal: QMetaMethod)¶
- createAndDisplayMeasurement¶
- createPanel()¶
For advanced plots, creates an instance of a plot panel and returns it. For simple (panel-less) plots, returns None.
- createShortcutWidget(plot_panel)¶
Create and store reference to a shortcut widget for a given Advanced Plot
- Parameters
plot_panel (BaseAdvancedPlotPanel) – Plot panel that shortcut will launch
- Returns
Shortcut for the Advanced Plot
- Return type
- customEvent(self, a0: QEvent)¶
- deleteLater(self)¶
- deletePlot¶
- destroyed¶
destroyed(self, object: typing.Optional[QObject] = None) [signal]
- disconnect(a0: QMetaObject.Connection) bool ¶
- disconnect(self) None
- disconnectNotify(self, signal: QMetaMethod)¶
- displayAsl¶
- displayFrameAndAsl¶
- drawPlot(plot_colorbar=True, color_high_freq=None)¶
Clear the data on the figure and plot based on the given settings
- Parameters
plot_colorbar (bool) – plot the colorbar alongside the wheel
color_high_freq (Union[None, float]) – the frequency to correspond to the strongest color on the color map
- dumpObjectInfo(self)¶
- dumpObjectTree(self)¶
- dynamicPropertyNames(self) List[QByteArray] ¶
- event(self, a0: QEvent) bool ¶
- eventFilter(self, a0: QObject, a1: QEvent) bool ¶
- exportToCSV(parent=None)¶
Export plot data to a CSV file
- exportToExcel(parent=None)¶
Export data to an .xls file
- 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]
- generateASL(aids)¶
Generates an ASL string selecting given atom IDs.
- Parameters
aids (Union[int, list(int)]) – Single atom id OR list of atom ids
- Returns
ASL which selects given atoms.
- Return type
str
- generateSettingsHash(settings_list)¶
Return a tuple that uniquely identifies this plot.
- Parameters
settings_list (list) – List of settings that can uniquely identify the plot. In addition to these, the plot class name and trajectory path will be added.
- Returns
Unique identifier for the plot.
- Return type
tuple
- getDataForExport()¶
Return a list of row data to export to CSV or Excel.
- Returns
Data to be exported
- Return type
list(list)
- getExportData()¶
Most panels export the same data whether export was selected from the plot panel or the main panel. Override this method to export different type of data when exporting from the parent panel, via the “Export Results…” button.
- getInitialPlotTitleAndTooltip(shortcut_title)¶
Return the plot title and tooltip for this plot.
- Returns
Plot title, Plot tooltip.
- Return type
(str, str or None)
- getPlotTitle()¶
- getPlotType()¶
Returns what type of plot this class uses; used for grouping export data.
- getSettingsHash()¶
- inherits(self, classname: str) bool ¶
- installEventFilter(self, a0: QObject)¶
- isRunning()¶
Return True if the plot is still generating data.
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- isWidgetType(self) bool ¶
- isWindowType(self) bool ¶
- killTimer(self, id: int)¶
- loadFromTask(task)¶
Load in results from the given task.
- Parameters
task (tasks.AbstractTask) – Task to get result data from.
- metaObject(self) QMetaObject ¶
- moveToThread(self, thread: QThread)¶
- newDataAvailable¶
- objectName(self) str ¶
- objectNameChanged¶
objectNameChanged(self, objectName: str) [signal]
- onDihedralAslSelected(dihedral_asl)¶
- 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)¶
- saveImage()¶
Save a .png file of the plot
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setObjectName(self, name: str)¶
- setParent(self, a0: QObject)¶
- setProperty(self, name: str, value: Any) bool ¶
- showContextMenu(parent=None)¶
- showWarning¶
- signalsBlocked(self) bool ¶
- start()¶
- 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 ¶
- class schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.ConfResiduePlotManager(panel, res_info)¶
Bases:
schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.AbstractConfWheelPlotManager
- ANALYSIS_TYPE = 25¶
- ABBREVIATION_TYPE = 'residue'¶
- PANEL_CLASS¶
alias of
schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.ConfWheelPlotPanel
- __init__(panel, res_info)¶
- blockSignals(self, b: bool) bool ¶
- childEvent(self, a0: QChildEvent)¶
- children(self) List[QObject] ¶
- configureTask(task, st_asl)¶
Configure the specified task by assigning it the analysis mode, and assigning inputs based on the currently selected trajectory. Task’s taskDone signal is connected to self._onTaskEnded().
- connectNotify(self, signal: QMetaMethod)¶
- createAndDisplayMeasurement¶
- createPanel()¶
For advanced plots, creates an instance of a plot panel and returns it. For simple (panel-less) plots, returns None.
- createShortcutWidget(plot_panel)¶
Create and store reference to a shortcut widget for a given Advanced Plot
- Parameters
plot_panel (BaseAdvancedPlotPanel) – Plot panel that shortcut will launch
- Returns
Shortcut for the Advanced Plot
- Return type
- customEvent(self, a0: QEvent)¶
- deleteLater(self)¶
- deletePlot¶
- destroyed¶
destroyed(self, object: typing.Optional[QObject] = None) [signal]
- disconnect(a0: QMetaObject.Connection) bool ¶
- disconnect(self) None
- disconnectNotify(self, signal: QMetaMethod)¶
- displayAsl¶
- displayFrameAndAsl¶
- drawPlot(plot_colorbar=True, color_high_freq=None)¶
Clear the data on the figure and plot based on the given settings
- Parameters
plot_colorbar (bool) – plot the colorbar alongside the wheel
color_high_freq (Union[None, float]) – the frequency to correspond to the strongest color on the color map
- dumpObjectInfo(self)¶
- dumpObjectTree(self)¶
- dynamicPropertyNames(self) List[QByteArray] ¶
- event(self, a0: QEvent) bool ¶
- eventFilter(self, a0: QObject, a1: QEvent) bool ¶
- exportToCSV(parent=None)¶
Export plot data to a CSV file
- exportToExcel(parent=None)¶
Export data to an .xls file
- 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]
- generateASL(aids)¶
Generates an ASL string selecting given atom IDs.
- Parameters
aids (Union[int, list(int)]) – Single atom id OR list of atom ids
- Returns
ASL which selects given atoms.
- Return type
str
- generateSettingsHash(settings_list)¶
Return a tuple that uniquely identifies this plot.
- Parameters
settings_list (list) – List of settings that can uniquely identify the plot. In addition to these, the plot class name and trajectory path will be added.
- Returns
Unique identifier for the plot.
- Return type
tuple
- getDataForExport()¶
Return a list of row data to export to CSV or Excel.
- Returns
Data to be exported
- Return type
list(list)
- getExportData()¶
Most panels export the same data whether export was selected from the plot panel or the main panel. Override this method to export different type of data when exporting from the parent panel, via the “Export Results…” button.
- getInitialPlotTitleAndTooltip(shortcut_title)¶
Return the plot title and tooltip for this plot.
- Returns
Plot title, Plot tooltip.
- Return type
(str, str or None)
- getPlotTitle()¶
- getPlotType()¶
Returns what type of plot this class uses; used for grouping export data.
- getSettingsHash()¶
- inherits(self, classname: str) bool ¶
- installEventFilter(self, a0: QObject)¶
- isRunning()¶
Return True if the plot is still generating data.
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- isWidgetType(self) bool ¶
- isWindowType(self) bool ¶
- killTimer(self, id: int)¶
- loadFromTask(task)¶
Load in results from the given task.
- Parameters
task (tasks.AbstractTask) – Task to get result data from.
- metaObject(self) QMetaObject ¶
- moveToThread(self, thread: QThread)¶
- newDataAvailable¶
- objectName(self) str ¶
- objectNameChanged¶
objectNameChanged(self, objectName: str) [signal]
- onDihedralAslSelected(dihedral_asl)¶
- 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)¶
- saveImage()¶
Save a .png file of the plot
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setObjectName(self, name: str)¶
- setParent(self, a0: QObject)¶
- setProperty(self, name: str, value: Any) bool ¶
- showContextMenu(parent=None)¶
- showWarning¶
- signalsBlocked(self) bool ¶
- start()¶
- 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 ¶
- class schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.ConfNucleotidePlotManager(panel, res_info)¶
Bases:
schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.AbstractConfWheelPlotManager
- ANALYSIS_TYPE = 26¶
- ABBREVIATION_TYPE = 'nucleic acid'¶
- PANEL_CLASS¶
alias of
schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.ConfWheelPlotPanel
- __init__(panel, res_info)¶
- blockSignals(self, b: bool) bool ¶
- childEvent(self, a0: QChildEvent)¶
- children(self) List[QObject] ¶
- configureTask(task, st_asl)¶
Configure the specified task by assigning it the analysis mode, and assigning inputs based on the currently selected trajectory. Task’s taskDone signal is connected to self._onTaskEnded().
- connectNotify(self, signal: QMetaMethod)¶
- createAndDisplayMeasurement¶
- createPanel()¶
For advanced plots, creates an instance of a plot panel and returns it. For simple (panel-less) plots, returns None.
- createShortcutWidget(plot_panel)¶
Create and store reference to a shortcut widget for a given Advanced Plot
- Parameters
plot_panel (BaseAdvancedPlotPanel) – Plot panel that shortcut will launch
- Returns
Shortcut for the Advanced Plot
- Return type
- customEvent(self, a0: QEvent)¶
- deleteLater(self)¶
- deletePlot¶
- destroyed¶
destroyed(self, object: typing.Optional[QObject] = None) [signal]
- disconnect(a0: QMetaObject.Connection) bool ¶
- disconnect(self) None
- disconnectNotify(self, signal: QMetaMethod)¶
- displayAsl¶
- displayFrameAndAsl¶
- drawPlot(plot_colorbar=True, color_high_freq=None)¶
Clear the data on the figure and plot based on the given settings
- Parameters
plot_colorbar (bool) – plot the colorbar alongside the wheel
color_high_freq (Union[None, float]) – the frequency to correspond to the strongest color on the color map
- dumpObjectInfo(self)¶
- dumpObjectTree(self)¶
- dynamicPropertyNames(self) List[QByteArray] ¶
- event(self, a0: QEvent) bool ¶
- eventFilter(self, a0: QObject, a1: QEvent) bool ¶
- exportToCSV(parent=None)¶
Export plot data to a CSV file
- exportToExcel(parent=None)¶
Export data to an .xls file
- 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]
- generateASL(aids)¶
Generates an ASL string selecting given atom IDs.
- Parameters
aids (Union[int, list(int)]) – Single atom id OR list of atom ids
- Returns
ASL which selects given atoms.
- Return type
str
- generateSettingsHash(settings_list)¶
Return a tuple that uniquely identifies this plot.
- Parameters
settings_list (list) – List of settings that can uniquely identify the plot. In addition to these, the plot class name and trajectory path will be added.
- Returns
Unique identifier for the plot.
- Return type
tuple
- getDataForExport()¶
Return a list of row data to export to CSV or Excel.
- Returns
Data to be exported
- Return type
list(list)
- getExportData()¶
Most panels export the same data whether export was selected from the plot panel or the main panel. Override this method to export different type of data when exporting from the parent panel, via the “Export Results…” button.
- getInitialPlotTitleAndTooltip(shortcut_title)¶
Return the plot title and tooltip for this plot.
- Returns
Plot title, Plot tooltip.
- Return type
(str, str or None)
- getPlotTitle()¶
- getPlotType()¶
Returns what type of plot this class uses; used for grouping export data.
- getSettingsHash()¶
- inherits(self, classname: str) bool ¶
- installEventFilter(self, a0: QObject)¶
- isRunning()¶
Return True if the plot is still generating data.
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- isWidgetType(self) bool ¶
- isWindowType(self) bool ¶
- killTimer(self, id: int)¶
- loadFromTask(task)¶
Load in results from the given task.
- Parameters
task (tasks.AbstractTask) – Task to get result data from.
- metaObject(self) QMetaObject ¶
- moveToThread(self, thread: QThread)¶
- newDataAvailable¶
- objectName(self) str ¶
- objectNameChanged¶
objectNameChanged(self, objectName: str) [signal]
- onDihedralAslSelected(dihedral_asl)¶
- 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)¶
- saveImage()¶
Save a .png file of the plot
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setObjectName(self, name: str)¶
- setParent(self, a0: QObject)¶
- setProperty(self, name: str, value: Any) bool ¶
- showContextMenu(parent=None)¶
- showWarning¶
- signalsBlocked(self) bool ¶
- start()¶
- 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.trajectory.trajectory_gui_dir.conformation_wheel_plots.get_color_gradient(name, hex_0, hex_1)¶
Create a LinearSegmentedColormap that is a gradient from hex_0 to hex_1
- Parameters
name (str) – the name of the new colormap
hex_0 (str) – the starting point of the colormap as a color hex
hex_1 (str) – the ending point of the colormap as a color hex
- Returns
colormap with a linear gradient from hex_0 to hex_1
- Return type
LinearSegmentedColormap
- schrodinger.trajectory.trajectory_gui_dir.conformation_wheel_plots.rad_to_deg_range(rad1, rad2)¶
Format the input radians in range 0 - 2pi to degree ranges that range from 0 - ±180. The numerically smaller degrees will always come first