Skip to content

shift start of cadence to observation time#1498

Open
jchate6 wants to merge 1 commit intodevfrom
1497-discrepancy-between-the-start-time-for-a-cadence-and-the-time-of-actual-observation
Open

shift start of cadence to observation time#1498
jchate6 wants to merge 1 commit intodevfrom
1497-discrepancy-between-the-start-time-for-a-cadence-and-the-time-of-actual-observation

Conversation

@jchate6
Copy link
Copy Markdown
Contributor

@jchate6 jchate6 commented Apr 2, 2026

No description provided.

@jchate6 jchate6 requested a review from moira-andrews April 2, 2026 17:48
@jchate6 jchate6 moved this to Needs Review in TOM Toolkit Apr 2, 2026
elif observation_payload['last_obs_start']:
new_start = observation_payload['last_obs_start'] + timedelta(hours=advance_window_hours)
else:
new_start = parse(observation_payload[start_keyword]) + timedelta(hours=advance_window_hours)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I worry about the window length being limited to the length of the observation because if it is a short exposure that isn't constantly visible, it will clutter up the runcadencestrategies log with visibility errors as it keeps attempting to schedule it. This also might be tricky with many observations because it's more observations being scheduled for the same window instead of giving the scheduler room to avoid failures. Maybe a combination of this more robust check for scheduled start/end method and a user defined from the settings file for the minimum window

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is definitely the right direction though, and cluttering runcadencestrategies log is not the worst thing in the world. Maybe a future improvement would be to combine with the method in #1492 to allow the observing window to be increased or defined elsewhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

Discrepancy between the start time for a cadence and the time of actual observation

2 participants