Module trase.tools.sei_pcs.validation
Functions
def run_validation(df: pandas.core.frame.DataFrame, validation: Dict[str, Iterable[Validation]])
Classes
class Any (first_child: Validation, *other_children: Validation)-
Combine other validation functions
Example
``` Any(Code(6), Code(8)) # accept codes that are length six or eight ````
Ancestors
- Validation
- abc.ABC
Inherited members
class Code (length: int, allow_x: bool = True)-
Has to be a string of a predefined length containing only digits, like "030211".
Example
Code(6)Args
allow_x- also permit "XXXXXX" (defaults to True).
Ancestors
- Validation
- abc.ABC
Class variables
var allow_x : boolvar length : int
Inherited members
class Enum (permitted: List)-
Must take one of a set of pre-defined values.
Example
Enum(["SOLVED", "UNSOLVED"])Ancestors
- Validation
- abc.ABC
Class variables
var permitted : List
Inherited members
class IsNonNegative-
Must be non-negative
Ancestors
- Validation
- abc.ABC
Inherited members
class ValidationError (*args, **kwargs)-
Common base class for all non-exit exceptions.
Ancestors
- builtins.Exception
- builtins.BaseException
class Value (value: Any)-
Must match a single value
Example
Value("UNKNONWN")Ancestors
- Validation
- abc.ABC
Class variables
var value : Any
Inherited members