MockPipelineTaskConfig#

class lsst.pipe.base.tests.mocks.MockPipelineTaskConfig(*args, **kw)#

Bases: BaseTestPipelineTaskConfig

Configuration class for MockPipelineTask.

Attributes Summary

connections

Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.

fail_condition

Condition on Data ID to raise an exception.

fail_exception

Class name of the exception to raise when fail condition is triggered.

fail_signal

Signal to raise instead of an exception.

int_value

Arbitrary integer value to write into mock output datasets (int, default None)

memory_required

If not None, simulate an out-of-memory failure by raising only if ExecutionResource.max_mem exceeds this value.

original

The original task being mocked by this one.

saveLogOutput

Flag to enable/disable saving of log output for a task, enabled by default.

sleep

Time to sleep (seconds) before mock execution reading inputs or failing.

str_value

Arbitrary string value to write into mock output datasets (str, default None)

unmocked_dataset_types

Names of input dataset types that should be used as-is instead of being mocked.

Attributes Documentation

connections: pexConfig.ConfigField#

Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.

fail_condition#

Condition on Data ID to raise an exception. String expression which includes attributes of quantum data ID using a syntax of daf_butler user expressions (e.g. ‘visit = 123’). (str, default '')

fail_exception#

Class name of the exception to raise when fail condition is triggered. Can be ‘lsst.pipe.base.NoWorkFound’ to specify non-failure exception. (str, default 'builtins.ValueError')

fail_signal#

Signal to raise instead of an exception. (int, default None)

int_value#

Arbitrary integer value to write into mock output datasets (int, default None)

memory_required#

If not None, simulate an out-of-memory failure by raising only if ExecutionResource.max_mem exceeds this value. This string should include units as parsed by astropy.units.Quantity (e.g. ‘4GB’). (str, default None)

original: ConfigurableField#

The original task being mocked by this one. (ConfigurableInstance, default <class 'lsst.pipe.base.tests.mocks._pipeline_task.MockPipelineDefaultTargetConfig'>)

saveLogOutput#

Flag to enable/disable saving of log output for a task, enabled by default. (bool, default True)

sleep#

Time to sleep (seconds) before mock execution reading inputs or failing. (float, default 0.0)

str_value#

Arbitrary string value to write into mock output datasets (str, default None)

unmocked_dataset_types#

Names of input dataset types that should be used as-is instead of being mocked. May include dataset types not relevant for this task, which will be ignored. (List, default ())