Skip to content

temperature_plot

frog.gui.temperature_plot ¤

Panel showing a plot of temperatures.

Attributes¤

Classes¤

TemperaturePlot() ¤

Bases: QGroupBox

Widgets to view the temperature properties.

Creates a panel with a graph to monitor the blackbody temperatures.

Source code in src/frog/gui/temperature_plot.py
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
def __init__(self) -> None:
    """Creates a panel with a graph to monitor the blackbody temperatures."""
    super().__init__("BB Monitor")

    self._temperature_idx: Mapping[str, int] = {}

    layout = self._create_controls()
    self.setLayout(layout)

    pub.subscribe(
        self._set_temperature_idx,
        f"device.{TEMPERATURE_MONITOR_TOPIC}.temperature_idx",
    )
    pub.subscribe(
        self._unset_temperature_idx,
        f"device.closed.{TEMPERATURE_MONITOR_TOPIC}",
    )
    pub.subscribe(
        self._plot_bb_temps, f"device.{TEMPERATURE_MONITOR_TOPIC}.data.response"
    )
Functions¤