From db06c4917091a524e684d7763b159107cc7057cd Mon Sep 17 00:00:00 2001 From: Zoheb Shaikh Date: Wed, 4 Dec 2024 16:55:14 +0000 Subject: [PATCH] copied code from collect_while_completing to ophyd_async --- src/ophyd_async/plan_stubs/_fly.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ophyd_async/plan_stubs/_fly.py b/src/ophyd_async/plan_stubs/_fly.py index e10030a344..b4c7af66c8 100644 --- a/src/ophyd_async/plan_stubs/_fly.py +++ b/src/ophyd_async/plan_stubs/_fly.py @@ -119,11 +119,9 @@ def fly_and_collect( yield from bps.kickoff(flyer, wait=True) for detector in detectors: yield from bps.kickoff(detector) - group = short_uid(label="complete") - yield from bps.complete(flyer, wait=False, group=group) - for detector in detectors: - yield from bps.complete(detector, wait=False, group=group) + group = short_uid(label="complete") + yield from bps.complete_all(flyer, wait=False, group=group) done = False while not done: