solarforecastarbiter.datamodel.QualityFlagFilter

class solarforecastarbiter.datamodel.QualityFlagFilter(quality_flags: Tuple[str, ...] = ('UNEVEN FREQUENCY', 'LIMITS EXCEEDED', 'CLEARSKY EXCEEDED', 'DAYTIME STALE VALUES', 'INCONSISTENT IRRADIANCE COMPONENTS'))[source]

Class representing quality flag filters to be applied in a report.

Parameters:quality_flags (Tuple of str) – Strings corresponding to BITMASK_DESCRIPTION_DICT or DERIVED_MASKS keys. These periods will be excluded from the analysis.
__init__(quality_flags: Tuple[str, ...] = ('UNEVEN FREQUENCY', 'LIMITS EXCEEDED', 'CLEARSKY EXCEEDED', 'DAYTIME STALE VALUES', 'INCONSISTENT IRRADIANCE COMPONENTS')) → None

Methods

__init__(quality_flags, …] = (, , , , ))
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.

Attributes

quality_flags