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.
- required_columns#
Columns that must contain valid, unmasked values for every row associated with this action.
- Type:
collections.abc.Collection[str]
- validator#
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.
- Type:
collections.abc.Callable[[astropy.table.table.QTable],bool | str | list[str]] | None
Methods
validate_against_table(table, *, action_name)Validate rows corresponding to one action.
Attributes