DAQ: bug in using enums for area_detector fixed
Build and Publish / test (push) Failing after 1m5s
Build and Publish / build (push) Has been skipped
Build and Publish / Build and Deploy Docs (push) Has been skipped

This commit is contained in:
2026-04-30 13:11:12 +02:00
parent 71de09a11f
commit 6095dee54a
+4 -4
View File
@@ -175,13 +175,13 @@ class epicsAD(object):
self.acquire.put(1)
def set_auto_once(self):
self.expo_mode.put(AutoEnum.ONCE)
self.gain_mode.put(AutoEnum.ONCE)
self.expo_mode.put(AutoEnum.ONCE.value)
self.gain_mode.put(AutoEnum.ONCE.value)
def set_manual(self):
self.acquire.put(0, wait=True)
self.gain_mode.put(AutoEnum.MANUAL) # automatic gain control
self.expo_mode.put(AutoEnum.MANUAL) # automatic exposure control
self.gain_mode.put(AutoEnum.MANUAL.value) # manual gain control
self.expo_mode.put(AutoEnum.MANUAL.value) # manual exposure control
self.acquire.put(1)
def restore(self, gain: float = 5, expo: float = 0.025):