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

OPSIM-1194: let unscheduled downtimes be less than a day #109

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

yoachim
Copy link
Member

@yoachim yoachim commented Sep 23, 2024

Update ModelObservatory so it can handle downtime events that are shorter than 1 day.

Copy link
Member

@rhiannonlynne rhiannonlynne left a comment

Choose a reason for hiding this comment

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

The update looks correct, but it would be good to expand the unit test to confirm that it stays correct.

assert ~mo_default.check_up(mjd_down)
assert mo_ideal.check_up(mjd_down)
assert ~mo_default.check_up(mjd_down)[0]
assert mo_ideal.check_up(mjd_down)[0]
Copy link
Member

Choose a reason for hiding this comment

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

It would be great to add a test with a short downtime and see that the time returned by check_mjd is the appropriate time, and that if you land in the middle of a day, that it advances to the correct time of sunset.

@yoachim yoachim merged commit 2f4b1ad into main Sep 24, 2024
7 checks passed
@rhiannonlynne rhiannonlynne changed the title let unscheduled downtimes be less than a day OPSIM-1194: let unscheduled downtimes be less than a day Sep 24, 2024
@rhiannonlynne rhiannonlynne deleted the tickets/OPSIM-1194 branch September 27, 2024 21:39
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.

2 participants