solarforecastarbiter.io.api.APISession.get_observation_value_gaps

APISession.get_observation_value_gaps(observation_id, start, end)[source]

Get any gaps in observation data from start to end.

In addition to querying the /observations/{observation_id}/values/gaps endpoint, this function also queries the observation timerange to return all gaps from start to end.

Parameters:
  • observation_id (string) – UUID of the observation object.
  • start (timelike object) – Start time in interval to retrieve values for
  • end (timelike object) – End time of the interval
Returns:

list of (pd.Timestamp, pd.Timestamp) – Of (start, end) gaps in the observations from the last timestamp of a valid observation to the next valid observation timestamp. Interval label is not accounted for.