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

Check there is enough time before starting seq.scan() #181

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

BrianJKoopman
Copy link
Member

This PR implements the "minimum duration" argument discussed in #169. This argument specifies the minimum number of seconds before the stop_time that we need to be able to start scanning.

Along with this we also add a quick check on the current time compared to the stop_time. If stop_time has already passed, we skip the scan entirely.

Resolves #169.

Copy link
Member

@kmharrington kmharrington left a comment

Choose a reason for hiding this comment

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

thanks!

This ensures that scans are at least `min_duration` long, otherwise it skips
the scan entirely.
@BrianJKoopman BrianJKoopman merged commit 538b615 into main Oct 18, 2024
3 checks passed
@BrianJKoopman BrianJKoopman deleted the koopman/min-scan-duration branch October 18, 2024 21:17
kmharrington pushed a commit to simonsobs/scheduler that referenced this pull request Oct 26, 2024
BrianJKoopman added a commit to simonsobs/scheduler that referenced this pull request Oct 28, 2024
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.

Additional timing utilities
2 participants