solarforecastarbiter.validation.tasks.apply_validation

solarforecastarbiter.validation.tasks.apply_validation(observation, observation_values)[source]

Applies the appropriate daily or immediate validation functions to the observation_values depending on the length of the data. If an Aggregate object is passed, a warning is logged and the observation_values are returned.

Parameters:
Returns:

pandas.DataFrame – With the same index as the input and ‘quality_flag’ updated appropriately

Raises:

TypeError – If the supplied observations_values is not a DataFrame with a DatetimeIndex