Skip to content

Commit

Permalink
Updated _update_figure()
Browse files Browse the repository at this point in the history
  • Loading branch information
CWestICL committed Nov 16, 2023
1 parent 7899756 commit eab229f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions finesse/gui/temp_control.py
Expand Up @@ -129,7 +129,7 @@ def _toggle_axis_visibility(self, name: str) -> None:
self._canvas.draw()

def _update_figure(
self, new_time: float, new_hot_data: Decimal, new_cold_data: Decimal
self, new_time: float, new_hot_data: float, new_cold_data: float
) -> None:
"""Updates the matplotlib figure to be contained within the panel.
Expand Down Expand Up @@ -186,8 +186,8 @@ def _plot_bb_temps(self, time: datetime, temperatures: Sequence) -> None:
time: the time that the temperatures were read
temperatures: the list of temperatures measured by the DP9800
"""
hot_bb_temp = temperatures[TEMPERATURE_MONITOR_HOT_BB_IDX]
cold_bb_temp = temperatures[TEMPERATURE_MONITOR_COLD_BB_IDX]
hot_bb_temp = float(temperatures[TEMPERATURE_MONITOR_HOT_BB_IDX])
cold_bb_temp = float(temperatures[TEMPERATURE_MONITOR_COLD_BB_IDX])

self._update_figure(time.timestamp(), hot_bb_temp, cold_bb_temp)

Expand Down

0 comments on commit eab229f

Please sign in to comment.