Skip to content
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

update to bps.collect_while_completeing #536

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ZohebShaikh
Copy link
Contributor

No description provided.

@ZohebShaikh ZohebShaikh linked an issue Aug 20, 2024 that may be closed by this pull request
@ZohebShaikh ZohebShaikh force-pushed the 329-investigate-hanging-collect_while_completing-planstub branch 4 times, most recently from 565b629 to cbe0434 Compare August 23, 2024 09:47
@ZohebShaikh ZohebShaikh changed the title initial commit update to bps.collect_while_completeing Aug 23, 2024
@@ -16,7 +16,7 @@ dependencies = [
"numpy<2.0.0",
"packaging",
"pint",
"bluesky>=1.13.0a3",
"bluesky>=1.13.0a4",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have change this to make sure that we are at version the hardware test was conducted

@ZohebShaikh ZohebShaikh force-pushed the 329-investigate-hanging-collect_while_completing-planstub branch from 9703a49 to 5ddf953 Compare August 28, 2024 11:57
@ZohebShaikh ZohebShaikh marked this pull request as ready for review August 28, 2024 11:57
@ZohebShaikh ZohebShaikh force-pushed the 329-investigate-hanging-collect_while_completing-planstub branch from 5ddf953 to 923490c Compare August 28, 2024 11:57
src/ophyd_async/plan_stubs/_fly.py Outdated Show resolved Hide resolved
src/ophyd_async/plan_stubs/_fly.py Outdated Show resolved Hide resolved
@ZohebShaikh ZohebShaikh force-pushed the 329-investigate-hanging-collect_while_completing-planstub branch from 923490c to db41573 Compare August 30, 2024 08:42
@ZohebShaikh ZohebShaikh force-pushed the 329-investigate-hanging-collect_while_completing-planstub branch from db41573 to be29b8e Compare August 30, 2024 08:44
def fly_and_collect(
stream_name: str,
flyer: StandardFlyer[SeqTableInfo] | StandardFlyer[PcompInfo],
detectors: List[StandardDetector],
flush_period: float = 0.5,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be nice to

Suggested change
flush_period: float = 0.5,
flush_period: float = DEFAULT_FLUSH_PERIOD,

)
yield from bps.wait(group=group)
done = yield from bps.wait(group=group, timeout=flush_period, move_on=True)
yield from bps.collect(*detectors, name=stream_name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the removal of return_payload intentional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate hanging collect_while_completing planstub
3 participants