MergeDefectsTaskConfig#

class lsst.cp.pipe.MergeDefectsTaskConfig(*args, **kw)#

Bases: PipelineTaskConfig

Configuration for merging single exposure defects.

Attributes Summary

assertSameRun

Ensure that all visits are from the same run? Raises if this is not the case, or if the run key isn't found.

combinationFraction

The fraction (0..1) of visits in which a pixel was found to be defective across the visit list in order to be marked as a defect.

combinationMode

Which types of defects to identify (str, default 'FRACTION')

connections

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

edgesAsDefects

Mark all edge pixels, as defined by nPixBorder[UpDown, LeftRight], as defects.

ignoreFilters

Set the filters used in the CALIB_ID to NONE regardless of the filters on the input images.

nPixBorderLeftRight

Number of pixels on left & right of image to mask as defects if edgesAsDefects is True.

nPixBorderUpDown

Number of pixels on top & bottom of image to mask as defects if edgesAsDefects is True.

nullFilterName

The name of the null filter if ignoreFilters is True.

saveLogOutput

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

Attributes Documentation

assertSameRun#

Ensure that all visits are from the same run? Raises if this is not the case, or if the run key isn’t found. (bool, default False)

combinationFraction#

The fraction (0..1) of visits in which a pixel was found to be defective across the visit list in order to be marked as a defect. Note, upper bound is exclusive, so use mode AND to require pixel to appear in all images. (float, default 0.7)

Valid Range = [0,1)

combinationMode#

Which types of defects to identify (str, default 'FRACTION')

Allowed values:

'AND'

Logical AND the pixels found in each visit to form set

'OR'

Logical OR the pixels found in each visit to form set

'FRACTION'

Use pixels found in more than config.combinationFraction of visits

'None'

Field is optional

connections: pexConfig.ConfigField#

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

edgesAsDefects#

Mark all edge pixels, as defined by nPixBorder[UpDown, LeftRight], as defects. (bool, default False)

ignoreFilters#

Set the filters used in the CALIB_ID to NONE regardless of the filters on the input images. Allows mixing of filters in the input flats. Set to False if you think your defects might be chromatic and want to have registry support for varying defects with respect to filter. (bool, default True)

nPixBorderLeftRight#

Number of pixels on left & right of image to mask as defects if edgesAsDefects is True. (int, default 5)

nPixBorderUpDown#

Number of pixels on top & bottom of image to mask as defects if edgesAsDefects is True. (int, default 5)

nullFilterName#

The name of the null filter if ignoreFilters is True. Usually something like NONE or EMPTY (str, default 'NONE')

saveLogOutput#

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