IndicatorGrid

Grid of indicators representing devices in the experiment area.

This requires the optional “happi” and “typhos” dependencies to function at runtime, but can be placed in designer without these installed. It will also require any user modules used to define device types in the “happi” database, such as “ophyd” and/or “pcdsdevices”.

If a TabDock exists in the application, the grid will open “typhos” screens in the dock, otherwise they will pop out as floating windows. The standard keyboard shortcuts and right click options for dock windows are supported.

../../../_images/indicator_grid.png
class pcdswidgets.common.dock.indicator_grid.IndicatorGrid(parent: QWidget | None = None)[source]

Grid of all Indicators.

This is the widget that goes in the screen. It can be parameterized only by setting the “beamline” property, which should be a valid “beamline” from happi, e.g. “TMO”, “XPP”, etc.

This will search happi for every “active” device marked on that “beamline” and sort them into the grid by their “functional_group” and “location_group” keys.

add_devices(devices: list[Device], system: str, stand: str)[source]

Add many devices for a specific system/stand group to the grid.

add_from_dict(devices: dict[str, list[Device]])[source]

Add devices from the dict presented to HappiLoader callbacks.

configure_ophyd()[source]

Configure settings for ophyd that make the grid experience smoother.

Note that if an EpicsSignal has already been created, we will be unable to edit the epics timeout settings. In this case we will continue, but you may get error spam at startup if you have many devices loaded in the table.

This does a few things: - Silences some noisy loggers - Silences some useless warnings - Works around the access control bug that only affects las-console - Increases the timeouts

get_beamline() → str[source]

Return the beamline we’ve set.

load_happi(beamline: str)[source]

Load happi devices into the grid using a background thread.

set_beamline(beamline: str)[source]

Set the beamline parameter, and in a live screen also load the devices from happi.