class solarforecastarbiter.datamodel.ValidationResult(flag: str, count: int, before_resample: bool = True)[source]

Store the validation result for a flag or combination of flags.

  • flag (str) – The quality flag(s) being recorded. See solarforecastarbiter.validation.quality_mapping.
  • count (int) – The number of timestamps that were flagged.
  • before_resample (bool) – If the flag was applied before resampling.
__init__(flag: str, count: int, before_resample: bool = True) → None


__init__(flag, count, before_resample)
from_dict(input_dict[, raise_on_extra]) Construct a dataclass from the given dict, matching keys with the class fields.
replace(**kwargs) Convience wrapper for dataclasses.replace() to create a new dataclasses from the old with the given keys replaced.
to_dict() Convert the dataclass into a dictionary suitable for uploading to the API.