From c7ae1b8a1fb141310e4d4ca739a399ec392a9995 Mon Sep 17 00:00:00 2001 From: Pete R Jemian Date: Mon, 22 Apr 2024 23:10:09 -0500 Subject: [PATCH] MNT #961 should not import from tests here --- apstools/devices/positioner_soft_done.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apstools/devices/positioner_soft_done.py b/apstools/devices/positioner_soft_done.py index cf3fb389b..7832d579b 100644 --- a/apstools/devices/positioner_soft_done.py +++ b/apstools/devices/positioner_soft_done.py @@ -20,7 +20,7 @@ from ophyd import Signal from ophyd.signal import EpicsSignalBase -from ..tests import timed_pause +# from ..tests import timed_pause logger = logging.getLogger(__name__) @@ -249,9 +249,11 @@ def stop(self, *, success=False): """ Hold the current readback when stop() is called and not :meth:`inposition`. """ + import time + if not self.inposition: self.setpoint.put(self.position) - timed_pause() + time.sleep(2.0 / 60) # two clock ticks, allow for EPICS record processing self.cb_readback() # re-evaluate soft done Signal