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

Add frame_timeout to trigger info #348

Merged
merged 11 commits into from
Jun 4, 2024
Merged

Conversation

abbiemery
Copy link
Collaborator

@abbiemery abbiemery commented May 30, 2024

This adds the frame_timeout to TriggerInfo so that it can be passed in via prepare for flyscans. For stepscans a default set of TriggerInfo values are provided.

I can't tell if this has made the tests longer or they already have got long.

Fixes #327 .

@callumforrester
Copy link
Contributor

This looks correct, thanks!
Will take a look at adding that test #344 (comment)

@abbiemery abbiemery force-pushed the add-timeout-to-trigger-info branch 2 times, most recently from 6087dd4 to bcfd82e Compare June 3, 2024 17:50
@abbiemery abbiemery force-pushed the add-timeout-to-trigger-info branch from bcfd82e to 33f9936 Compare June 4, 2024 10:21
@abbiemery abbiemery merged commit 0d0c7e7 into main Jun 4, 2024
18 checks passed
@abbiemery abbiemery deleted the add-timeout-to-trigger-info branch June 4, 2024 11:18
Comment on lines +245 to +247
self._trigger_info = TriggerInfo(
num=1, trigger=DetectorTrigger.internal, deadtime=0.0, livetime=0.0
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

What happens if you have previously run prepare(TriggerInfo(trigger=DetectorTrigger.internal, livetime=0.5)) as a way of setting up for a step scan with 0.5s exposure?

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.

Deal with HDF stall timeout in a better way
3 participants