dispel.processing.assertions module#
Assertions to be made on readings as part of processing steps.
- class dispel.processing.assertions.AssertEvaluationFinished[source]#
Bases:
ProcessingStep
Assertion to ensure evaluations are finished.
- process_reading(reading, **kwargs)[source]#
Ensure reading evaluation is finished.
- Parameters:
reading (Reading) –
- Return type:
Generator[ProcessingResult | ProcessingControlResult, None, None]
- class dispel.processing.assertions.AssertRawDataSetPresent[source]#
Bases:
LevelProcessingStep
Assertion to ensure specific data sets are present.
Deprecated since version 0.0.51: Use assert_level_valid
- static __new__(cls, *args, **kwargs)#
- process_level(level, reading, **kwargs)[source]#
Ensure level has data set id.
- Parameters:
- Return type:
Generator[ProcessingResult | ProcessingControlResult, None, None]
- class dispel.processing.assertions.NotEmptyDataSetAssertionMixin[source]#
Bases:
DataSetProcessingStepProtocol
A mixin to ensure that processed data sets are not empty.
- assert_valid_data_sets(data_sets, level, reading, **kwargs)[source]#
Assert that data sets are not empty.
- assertion_message = 'Empty dataset {data_set_id} for level {level}'#
The assertion message
- empty_data_set_handling = 'raise'#
The handling if a data set is empty