orangeqs.juice.dashboard.widgets.temperature_widget#
Widget for controlling thermometry units.
Module Contents#
Classes#
Widget to display temperature measurements from thermometry units. |
API#
- class orangeqs.juice.dashboard.widgets.temperature_widget.TemperatureWidget(thermometry_component_id: str, thermometer_map: dict[str, str] = {}, service_name: str = DEFAULT_FRIDGE_SERVICE)#
Widget to display temperature measurements from thermometry units.
Uses an ECharts pane to display temperature information over time, and provides a dropdown selector to filter the data on specified time ranges. Each cryostat level displays its own temperature sensor info as a separate
_TemperaturePlot. Multiple temperature sensors per level may exist.Parameters#
thermometry_component_id (str): The ID that is used to retrieve information from the backend.
thermometer_map: dict[str, str]: Mapping from sensor ID to cryostat level. Defaults to none.
service_name (str): Name of the fridge service to subscribe to. Defaults to
"fridge".
- async initial_update(timerange_s: int = -1, *, notify: bool = False) None#
Load initial data from InfluxDB2.
Parameters#
timerange_s (int): Seconds to load data for, or -1 to keep the current range.
notify (bool): Whether the user explicitly picked this range.
- update_sub(event: orangeqs.juice.fridge.data_structures.TemperaturePoint) None#
Update the plot with new data from subscriber.