Skip to content

Commit

Permalink
Updated frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
CWestICL committed Nov 16, 2023
1 parent e2b9c83 commit 6d8029b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions finesse/gui/temp_control.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Panel and widgets related to temperature monitoring."""
from collections.abc import Sequence
from datetime import datetime
from decimal import Decimal
from functools import partial
Expand Down Expand Up @@ -178,7 +179,7 @@ def _make_axes_sensible(self) -> None:
self._ax["hot"].autoscale()
self._ax["cold"].autoscale()

def _plot_bb_temps(self, time: datetime, temperatures: list[Decimal]) -> None:
def _plot_bb_temps(self, time: datetime, temperatures: Sequence) -> None:
"""Extract blackbody temperatures from DP9800 data and plot them.
Args:
Expand Down Expand Up @@ -263,7 +264,7 @@ def _poll_dp9800(self) -> None:
self._poll_light.flash()
pub.sendMessage(f"device.{TEMPERATURE_MONITOR_TOPIC}.data.request")

def _update_pt100s(self, temperatures: list[Decimal], time: datetime) -> None:
def _update_pt100s(self, temperatures: Sequence, time: datetime) -> None:
"""Display the latest Pt 100 temperatures.
Args:
Expand Down Expand Up @@ -431,7 +432,7 @@ def _update_controls(self, properties: dict):
elif self._alarm_light._is_on:
self._alarm_light._turn_off()

def _update_pt100(self, temperatures: list[Decimal], time: datetime):
def _update_pt100(self, temperatures: Sequence, time: datetime):
"""Show the latest blackbody temperature.
Args:
Expand Down

0 comments on commit 6d8029b

Please sign in to comment.