major fixes

This commit is contained in:
2023-05-24 17:37:51 +02:00
parent 6712251b9d
commit 523a154cd7
7 changed files with 107 additions and 76 deletions

View File

@@ -29,13 +29,13 @@ def assert_tweaker_positions(targets, timeout=60.0):
summary=[]
for i, m in enumerate(targets):
mot_tw, target, tolerance=m
name=mot_tw._motor._short_name
label=mot_tw._label
notSim=not type(mot_tw).__name__.startswith('Sim')
if notSim: pend_event()
cur=mot_tw.get_rbv()
done=mot_tw.is_done()
s=f"check {name} {cur:.5g} == {target:.5g} [done={done}]"
s=f"check {label} {cur:.5g} == {target:.5g} [done={done}]"
_log.debug(s)
summary.append(s)
if done and tolerance>=abs(cur-target):