-
Notifications
You must be signed in to change notification settings - Fork 5
Cache lower gonio positions before robot load and restore them afterwards #1467
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice, one optional comment
) | ||
|
||
if demand_energy_ev: | ||
yield from set_energy_plan( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bit tangential, but does the set energy plan always have to block during robot load or could we wait on it later?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we want https://github.com/DiamondLightSource/hyperion/issues/1495 really but needs the RE changes
|
||
yield from bps.wait("robot_load") | ||
# The lower gonio must be in the correct position for the robot load and we | ||
# want to put it back afterwards. Note we don't wait as we assume the lower |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be good to add explanation of why this is safe here
yield from bps.wait("robot_load") | ||
|
||
|
||
def raise_exception_if_moved_out_of_cryojet(exception): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is nice
…ards (DiamondLightSource/hyperion#1467) * First draft of caching lower gonios before robot load * Add test for returning lower_gonio to correct position * Specify argument for readability
Fixes #1439
Link to dodal PR (if required): DiamondLightSource/dodal#653
To test: