major fixes
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user