From dcd5e14de1853367e0625f794fc38ff928a4f283 Mon Sep 17 00:00:00 2001 From: Dominic Oram Date: Thu, 12 Sep 2024 13:40:05 +0100 Subject: [PATCH] Add link to bluesky issue that we could use to simplify --- .../hyperion/experiment_plans/robot_load_then_centre_plan.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mx_bluesky/hyperion/experiment_plans/robot_load_then_centre_plan.py b/src/mx_bluesky/hyperion/experiment_plans/robot_load_then_centre_plan.py index a2dbd11e1..9bb8e3082 100644 --- a/src/mx_bluesky/hyperion/experiment_plans/robot_load_then_centre_plan.py +++ b/src/mx_bluesky/hyperion/experiment_plans/robot_load_then_centre_plan.py @@ -123,6 +123,7 @@ def take_robot_snapshots(oav: OAV, webcam: Webcam, directory: Path): device.filename, snapshot_format.format(device=device.name) ) yield from bps.abs_set(device.directory, str(directory)) + # Note: should be able to use `wait=True` after https://github.com/bluesky/bluesky/issues/1795 yield from bps.trigger(device, group="snapshots") yield from bps.wait("snapshots")