bluesky / ophyd-async

Hardware abstraction for bluesky written using asyncio
https://blueskyproject.io/ophyd-async
BSD 3-Clause "New" or "Revised" License
7 stars 21 forks source link

Update the plan stubs and tests with kickoff_all and complete_all #328

Open abbiemery opened 1 month ago

abbiemery commented 1 month ago

Currently in main of Bluesky is utility stub for kicking off and completing multiple devices. Once Bluesky 1.13.0a4 is approved this will be available to us. At this point we should go through and update the places where the old style is used, and make sure the bluesky version is pinned in the toml.

yield from bps.kickoff(flyer)
for detector in detector_list:
    yield from bps.kickoff(detector)

yield from bps.complete(flyer, ...)
for detector in detector_list:
    yield from bps.complete(detector, ...)

Can then be

yield from bps.kickoff_all(...)
yield from bps.complete_all(...)

This is present in the time_resolved_fly_and_collect_with_static_seq_table plan stub and in a number of tests.

Acceptance