ForcedFailure#
- class lsst.pipe.base.tests.mocks.ForcedFailure(condition: str, exception_type: type[BaseException] | None = None, memory_required: Quantity | None = None)#
Bases:
objectInformation about an exception that should be raised by one or more quanta.
Attributes Summary
Butler expression-language string that matches the data IDs that should raise.
The type of exception to raise.
If not
None, this failure simulates an out-of-memory failure by raising only if this value exceedsExecutionResources.max_mem.Methods Summary
set_config(config)Attributes Documentation
- condition: str = <dataclasses._MISSING_TYPE object>#
Butler expression-language string that matches the data IDs that should raise.
- exception_type: type[BaseException] | None = None#
The type of exception to raise.
- memory_required: Quantity | None = None#
If not
None, this failure simulates an out-of-memory failure by raising only if this value exceedsExecutionResources.max_mem.
Methods Documentation
- set_config(config: MockPipelineTaskConfig) None#