-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not reload sample if its already been loaded #480
Do not reload sample if its already been loaded #480
Conversation
def robot_load_then_centre_plan( | ||
composite: RobotLoadThenCentreComposite, | ||
params: RobotLoadThenCentre, | ||
): | ||
yield from prepare_for_robot_load(composite) | ||
# TODO: get these from one source of truth #1347 |
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 now mx-bluesky issue 254
@@ -245,8 +257,17 @@ def robot_load_and_snapshots(): | |||
|
|||
yield from bps.wait("reset-lower_gonio") | |||
|
|||
yield from robot_load_and_snapshots() | |||
|
|||
if not ( |
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.
Perhaps we should consider moving robot_load_and_snapshots()
out of the function similar to prepare_for_robot_load()
- it's quite long I think it's affecting readbility.
@@ -185,11 +187,21 @@ def raise_exception_if_moved_out_of_cryojet(exception): | |||
) | |||
|
|||
|
|||
def pin_already_loaded( |
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.
should be private
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.
Approved
Fixes #240
Requires DiamondLightSource/dodal#785
To test: