This commit is contained in:
gac-x06da
2025-03-14 12:39:42 +01:00
parent a5f844b816
commit 74521da7b3
2 changed files with 5 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ class PlotUpdate(AutoUpdates):
# plot() will throw RPCResponseTimeoutError
try:
if len(info.scan_report_devices)==2:
if len(info.scan_report_devices) == 2:
# 2D plot
dev_x = info.scan_report_devices[0]
dev_y = info.scan_report_devices[1]
@@ -61,9 +61,9 @@ class PlotUpdate(AutoUpdates):
title=f"Scan {info.scan_number}",
x_label=dev_x,
y_label=dev_y,
z_label=det
z_label=det,
)
elif len(info.scan_report_devices)==1:
elif len(info.scan_report_devices) == 1:
# 1D plot
dev_x = info.scan_report_devices[0]
plt1.plot(
@@ -97,5 +97,4 @@ class PlotUpdate(AutoUpdates):
# self.run_grid_scan_update(info)
# return
super().handler(info)
self.plot_handler(info)
self.plot_handler(info)

View File

@@ -1,3 +1,4 @@
# pylint: disable=undefined-variable
# import bec
# import bec_lib.devicemanager.DeviceContainer as dev