ActionSpec#
- class uvex_transients.surveys.utils.ActionSpec(required_columns: Collection[str] = (), validator: Callable[[QTable], bool | str | list[str]] | None = None, description: str = '')[source]#
Validation rules for one survey-schedule action.
- Variables:
required_columns (
collections.abc.Collection[str]) – Columns that must contain valid, unmasked values for every row associated with this action.validator (
collections.abc.Callable[[astropy.table.table.QTable],bool | str | list[str]] | None) –Optional custom validator called with the subset of rows containing this action. It may return:
Truefor success;Falsefor a generic validation failure;a string containing one validation error;
a list of validation-error strings.
description (
str) – Human-readable description of the action.
Methods
validate_against_table(table, *, action_name)Validate rows corresponding to one action.
Attributes