diff --git a/pipelines/cpCore.yaml b/pipelines/cpCore.yaml index 1bfba2fbc..572ad742f 100644 --- a/pipelines/cpCore.yaml +++ b/pipelines/cpCore.yaml @@ -232,25 +232,39 @@ tasks: class: lsst.analysis.tools.tasks.VerifyCalibAnalysisTask config: connections.outputName: cpDefectCore - connections.data: verifyDefectResults - - # TODO: DM-43880 Sort out defects - atools.defectsHotPixels: CalibStatisticFocalPlanePlot - atools.defectsHotPixels.produce.plot.addHistogram: true - atools.defectsHotPixels.produce.plot.zAxisLabel: "Number of Hot Pixels" - atools.defectsHotPixels.quantityKey: DEFECTS_DEFECTS_DIST_N_HOT - atools.defectsHotPixels.unit: "---" + connections.data: verifyDefectsResults + + atools.defectsPixels: CalibStatisticFocalPlanePlot + atools.defectsPixels.produce.plot.addHistogram: false + # here set name of column from the verify table + atools.defectsPixels.quantityKey: DEFECTS_DEFECT_PIXELS + atools.defectsPixels.unit: "pix" + + atools.defectsPixelsFrac: CalibStatisticFocalPlanePlot + atools.defectsPixelsFrac.produce.plot.addHistogram: false + atools.defectsPixelsFrac.quantityKey: DEFECTS_FRAC + atools.defectsPixelsFrac.unit: "pix" + + # TODO: DM-52156 The following will be replaced with statistics for + # different defects reasons + # atools.defectsHotPixels: CalibStatisticFocalPlanePlot + # atools.defectsHotPixels.produce.plot.addHistogram: true + # atools.defectsHotPixels.produce.plot.zAxisLabel: "Number of Hot Pixels" + # atools.defectsHotPixels.quantityKey: DEFECTS_DEFECTS_DIST_N_HOT + # atools.defectsHotPixels.unit: "---" # atools.defectsColdPixels: CalibStatisticFocalPlanePlot # atools.defectsColdPixels.produce.plot.addHistogram: true # atools.defectsColdPixels.produce.plot.zAxisLabel: "Number of Cold Pixels" # atools.defectsColdPixels.quantityKey: DEFECTS_DEFECTS_DIST_N_COLD # atools.defectsColdPixels.unit: "---" + # atools.defectsBadColumns: CalibStatisticFocalPlanePlot # atools.defectsBadColumns.produce.plot.addHistogram: true # atools.defectsBadColumns.produce.plot.zAxisLabel: "Number of Hot Pixels" # atools.defectsBadColumns.quantityKey: DEFECTS_DEFECTS_DIST_N_BAD_COLUMNS # atools.defectsBadColumns.unit: "---" + python: | from lsst.analysis.tools.atools import *