diff --git a/pxiii_bec/bec_widgets/auto_updates.py b/pxiii_bec/bec_widgets/auto_updates.py index 5782267..75dec70 100644 --- a/pxiii_bec/bec_widgets/auto_updates.py +++ b/pxiii_bec/bec_widgets/auto_updates.py @@ -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) \ No newline at end of file diff --git a/pxiii_bec/scripts/beamlinescripts.py b/pxiii_bec/scripts/beamlinescripts.py index af5dcdc..b4511fb 100644 --- a/pxiii_bec/scripts/beamlinescripts.py +++ b/pxiii_bec/scripts/beamlinescripts.py @@ -1,3 +1,4 @@ +# pylint: disable=undefined-variable # import bec # import bec_lib.devicemanager.DeviceContainer as dev