various fixes (post_sample_tube, timing etc.)

This commit is contained in:
2022-09-28 14:52:13 +02:00
parent 30a9c77230
commit a186d256d3
6 changed files with 29 additions and 20 deletions

View File

@@ -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)