solarforecastarbiter.validation.tasks.apply_daily_validation¶
-
solarforecastarbiter.validation.tasks.
apply_daily_validation
(observation, observation_values)[source]¶ Apply the appropriate daily validation functions to the observation_values.
Only the USER_FLAGGED flag is propagated if the series has been previously validated.
Parameters: - observation (solarforecastarbiter.datamodel.Observation) –
- observation_values (pandas.DataFrame) – Must have ‘value’ and ‘quality_flag’ columns
Returns: pandas.DataFrame – With the same index as the input and ‘quality_flag’ updated appropriately
Raises: IndexError
– If there are not enough valid points to perform daily validation