uvex_transients.surveys.base.SurveySchedule.get_row_at_time#

SurveySchedule.get_row_at_time(time: Time) → Row[source]#

Return the scheduled action active at a given time.

An action with start_time s and duration d is treated as covering the half-open interval [s, s + d).

Parameters:

time (Time) – A scalar time to look up.

Returns:

The row of table whose interval contains time.

Return type:

Row

Raises:

ValueError – If time is not scalar, or no scheduled action covers it.