ForcedFailure#

class lsst.pipe.base.tests.mocks.ForcedFailure(condition: str, exception_type: type[BaseException] | None = None, memory_required: Quantity | None = None)#

Bases: object

Information about an exception that should be raised by one or more quanta.

Attributes Summary

condition

Butler expression-language string that matches the data IDs that should raise.

exception_type

The type of exception to raise.

memory_required

If not None, this failure simulates an out-of-memory failure by raising only if this value exceeds ExecutionResources.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 exceeds ExecutionResources.max_mem.

Methods Documentation

set_config(config: MockPipelineTaskConfig) None#