From f0fc3489495a5c55539999fe961954c999bce9a0 Mon Sep 17 00:00:00 2001 From: appleb_m Date: Thu, 22 Jan 2026 10:11:19 +0100 Subject: [PATCH] aera_det: added set_manual in case set_atuo is used. --- src/aare/devices/area_detector.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/aare/devices/area_detector.py b/src/aare/devices/area_detector.py index 082f8cb1..873980dc 100644 --- a/src/aare/devices/area_detector.py +++ b/src/aare/devices/area_detector.py @@ -134,6 +134,12 @@ class epicsAD(object): self.expo_mode.put(2) # automatic exposure control self.acquire.put(1) + def set_manual(self): + self.acquire.put(0, wait=True) + self.gain_mode.put(0) # automatic gain control + self.expo_mode.put(0) # automatic exposure control + self.acquire.put(1) + def restore(self, gain: float = 5, expo: float = 0.025): # Put this values, so the camera faster resores proper values in Auto mode self.acquire.put(0, wait=True)