Skip to content

Commit

Permalink
MNT #961 should not import from tests here
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Apr 23, 2024
1 parent 10eb798 commit c7ae1b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apstools/devices/positioner_soft_done.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down Expand Up @@ -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


Expand Down

0 comments on commit c7ae1b8

Please sign in to comment.