various fixes (post_sample_tube, timing etc.)
This commit is contained in:
@@ -34,12 +34,12 @@ def assert_tweaker_positions(targets, timeout=60.0):
|
||||
pend_event()
|
||||
cur=motor.get_rbv()
|
||||
done=motor.is_done()
|
||||
_log.debug("check {}[done={}]: {} == {}".format(name, done, cur, target))
|
||||
summary.append("{}[done={}]: {} == {}".format(name, done, cur, target))
|
||||
s=f"check {name} {cur:.5g} == {target:.5g} [done={done}]"
|
||||
_log.debug(s)
|
||||
summary.append(s)
|
||||
if done and tolerance>=abs(cur-target):
|
||||
count+=1
|
||||
pend_event(0.1)
|
||||
|
||||
if count==num_motors:
|
||||
break
|
||||
pend_event(0.1)
|
||||
|
||||
Reference in New Issue
Block a user