Skip to content

Commit

Permalink
copied code from collect_while_completing to ophyd_async
Browse files Browse the repository at this point in the history
  • Loading branch information
ZohebShaikh committed Dec 4, 2024
1 parent 6b3d95a commit db06c49
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ophyd_async/plan_stubs/_fly.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit db06c49

Please sign in to comment.