MockPipelineTaskConfig#
- class lsst.pipe.base.tests.mocks.MockPipelineTaskConfig(*args, **kw)#
Bases:
BaseTestPipelineTaskConfigConfiguration class for
MockPipelineTask.Attributes Summary
Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.
Condition on Data ID to raise an exception.
Class name of the exception to raise when fail condition is triggered.
Signal to raise instead of an exception.
Arbitrary integer value to write into mock output datasets (
int, defaultNone)If not None, simulate an out-of-memory failure by raising only if ExecutionResource.max_mem exceeds this value.
The original task being mocked by this one.
Flag to enable/disable saving of log output for a task, enabled by default.
Time to sleep (seconds) before mock execution reading inputs or failing.
Arbitrary string value to write into mock output datasets (
str, defaultNone)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, defaultNone)
- int_value#
Arbitrary integer value to write into mock output datasets (
int, defaultNone)
- 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, defaultNone)
- 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, defaultTrue)
- sleep#
Time to sleep (seconds) before mock execution reading inputs or failing. (
float, default0.0)
- str_value#
Arbitrary string value to write into mock output datasets (
str, defaultNone)
- 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())