imas_validator.validate.rule_executor.RuleExecutor¶
- class imas_validator.validate.rule_executor.RuleExecutor(db_entry: DBEntry, rules: list[IDSValidationRule], result_collector: ResultCollector, validate_options: ValidateOptions)¶
Bases:
objectClass for matching rules and idss and executing rules
- __init__(db_entry: DBEntry, rules: list[IDSValidationRule], result_collector: ResultCollector, validate_options: ValidateOptions)¶
Initialize RuleExecutor
- Parameters:
- db_entry: DBEntry¶
An opened DBEntry.
- rules: list[IDSValidationRule]¶
List of rules to apply to the data.
- result_collector: ResultCollector¶
ResultCollector object that stores the results after execution
- validate_options: ValidateOptions¶
Dataclass for validate options
Methods
__init__(db_entry, rules, result_collector, ...)Initialize RuleExecutor
Apply set of rules to the Data Entry.
Find combinations of rules and their relevant ids instances
Start progress object if in interactive environment
Stop progress object if in interactive environment
run(rule, ids_toplevels)
Last update:
2025-06-05