uvex_transients.surveys.base.SurveySchedule.next_action_time#
- SurveySchedule.next_action_time(times: Time, action: str, completion: bool = False) Time[source]#
For each of times, the time of the earliest action row starting at or after it.
A thin wrapper around get_next_action_id that reads the matched row’s time back out of
table.- Parameters:
times (
Time) – Query times, scalar or array-valued (e.g. one per event).action (
str) – One of the registered action types (seeactions), e.g."downlink".completion (
bool, optional) – If True, return each match’s completion time (start_time + duration) instead of its start time. The default is False.
- Returns:
Same shape as times, masked (
.masked/.mask) wherever no action row starts at or after the corresponding query time (e.g. the schedule ends before the next downlink).- Return type:
- Raises:
ValueError – If action is not one of
table’s registered action types.