imas_validator.rules.data.IDSValidationRule¶
-
class imas_validator.rules.data.IDSValidationRule(rule_path: Path, func: Callable, *ids_names: str, version: str =
'', **kwfields: dict[str, Any])¶ Bases:
objectObject holding the validation rule function and other relevant data
-
__init__(rule_path: Path, func: Callable, *ids_names: str, version: str =
'', **kwfields: dict[str, Any])¶ Initialize IDSValidationRule
Methods
__init__(rule_path, func, *ids_names[, version])Initialize IDSValidationRule
apply_func(ids_instances)Run the validation function with wrapped input arguments
parse_ids_names(*ids_names)Extract ids names and occurrences from ids_names input
- apply_func(ids_instances: list[IDSToplevel]) None¶
Run the validation function with wrapped input arguments
-
__init__(rule_path: Path, func: Callable, *ids_names: str, version: str =
Last update:
2025-08-29