Skip to content

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.

BrianJKoopman added a commit to simonsobs/scheduler that referenced this pull request Oct 17, 2024
BrianJKoopman added a commit to simonsobs/scheduler that referenced this pull request Oct 17, 2024
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 force-pushed the koopman/min-scan-duration branch from edd8f37 to 1f0babb Compare October 18, 2024 21:15
@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