solarforecastarbiter.validation.quality_mapping.check_if_single_value_flagged¶
-
solarforecastarbiter.validation.quality_mapping.
check_if_single_value_flagged
(flag, flag_description, _perform_checks=True)[source]¶ Check if the single integer flag has been flagged for flag_description
Parameters: - flag (integer) – Integer flag
- flag_description (string or iterable of strings) – Checks to compare againsts flag
Returns: Boolean – Whether any of flag_description checks are represented by flag
Raises: ValueError
– If flag has not been validatedTypeError
– If flag_description is not a string or iterable of stringsKeyError
– If flag_description is not a possible check for the flag version