Script execution

This commit is contained in:
gac-x03da
2022-02-01 17:54:47 +01:00
parent 7c5622cf66
commit 673a27b192
+4 -8
View File
@@ -245,17 +245,15 @@ class ImageReader(ReadonlyRegisterBase, ReadonlyRegisterMatrix):
ny = Scienta.slices.read()
return ny
class SimpleDeviceReader(ReadonlyRegisterBase):
class SimpleDeviceReader(Readable):
"""
pseudo-device class to read out another device once per region.
the device must be set assigned to the device attribute.
the device must be set assigned to the source attribute.
"""
def read(self):
print("simple device read")
v = self.source.read()
print(v)
return v
return self.source.read()
def setup_live_plots(regions):
global live_plots
@@ -320,8 +318,6 @@ def do_scan(scan, motors, positions, regions, latency):
set_device_alias(dev, reader.region_name + "/RefCurrent")
SENSORS.append(dev)
#SENSORS.append(SampleCurrent)
#SENSORS.append(RefCurrent)
adjust_sensors()
set_adc_averaging()