Repository navigation
Deferred moves fix - #2244
Deferred moves fix#2244
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2244 +/- ##
=======================================
Coverage 99.30% 99.30%
=======================================
Files 376 376
Lines 14798 14803 +5
=======================================
+ Hits 14695 14700 +5
Misses 103 103 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
DominicOram
left a comment
There was a problem hiding this comment.
Thanks, couple of comments. @DiamondLightSource/developers-mx-daq also use this, are they happy with the change?
|
|
||
| for axis, value in moves.items(): | ||
| await wait_for_value(axis.motor_done_move, 1, timeout=5) | ||
| assert math.isclose(await axis.user_readback.get_value(), value, abs_tol=0.1) |
There was a problem hiding this comment.
Should: I think at some point we probably want to remove this assert, it's only here atm to make sure that we're actually doing the move we expect, can you add an issue?
| for axis, value in moves.items(): | ||
| await wait_for_value(axis.motor_done_move, 1, timeout=5) |
There was a problem hiding this comment.
Could: We could do this with a gather, in practice it won't give us much though
| axes will move at the same time. The put callbacks on the axes themselves will | ||
| only come back after the motion on that axis finished. |
There was a problem hiding this comment.
Should: I think you need a comment either here or below to say that we check the done move as we can't always rely on the callback based on experience
DominicOram
left a comment
There was a problem hiding this comment.
Thanks. I still think MX need to take a look, I mentioned it to @rtuck99 yesterday
|
Will hold off on merging until then |
rtuck99
left a comment
There was a problem hiding this comment.
Looks reasonably harmless
Fixes deferred move issue seen with the i15-1 hexapod.
Instructions to reviewer on how to test:
Checks for reviewer
dodal connect ${BEAMLINE}