solarforecastarbiter.io.api.APISession.get_value_gaps¶
-
APISession.
get_value_gaps
(obj, start, end)[source]¶ Get gaps in the time series values from start to end for object from the API.
Parameters: - obj (datamodel.Observation, datamodel.Forecast, datamodel.ProbabilisticForecastConstantValues, datamodel.ProbabilisticForecast) – Data model object for which to obtain time series data.
- 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 values from the last timestamp of a valid value to the next valid timestamp. Interval label is not accounted for.
Raises: ValueError
– If start or end cannot be converted into a Pandas TimestampTypeError
– If an invalid type of obj is supplied