From b3b741d2136a9715e8468baf53ab6143cf740679 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Wed, 8 Jul 2026 10:12:17 -0400 Subject: [PATCH 1/2] FIX: watch correct PV to determine if we were running --- src/cditools/eiger_async.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cditools/eiger_async.py b/src/cditools/eiger_async.py index ec14bcb6..2a11a782 100644 --- a/src/cditools/eiger_async.py +++ b/src/cditools/eiger_async.py @@ -14,6 +14,7 @@ import numpy as np from ophyd_async.core import ( + ADState, AsyncStatus, DetectorAcquireLogic, DetectorDataLogic, @@ -528,7 +529,8 @@ async def wait_for_idle(self): # We are intentionally not calling the base class implementation async def ensure_ready(self): - self._cached_acquire_state = await self.driver.acquire.get_value() + detector_state = await self.driver.detector_state.get_value() + self._cached_acquire_state = detector_state == ADState.ACQUIRE self._cached_trigger_mode = await self.driver.trigger_mode.get_value() self._cached_image_mode = await self.driver.image_mode.get_value() From a2ef2c170a0aece0c3e10fc1e03bf1fd25ccb97b Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Wed, 8 Jul 2026 10:16:57 -0400 Subject: [PATCH 2/2] FIX: import from correct location --- src/cditools/eiger_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cditools/eiger_async.py b/src/cditools/eiger_async.py index 2a11a782..af58b722 100644 --- a/src/cditools/eiger_async.py +++ b/src/cditools/eiger_async.py @@ -14,7 +14,6 @@ import numpy as np from ophyd_async.core import ( - ADState, AsyncStatus, DetectorAcquireLogic, DetectorDataLogic, @@ -41,6 +40,7 @@ from ophyd_async.epics.adcore import ( ADBaseIO, ADImageMode, + ADState, AreaDetector, NDFileIO, NDPluginBaseIO,