From 9a98b785f1d7b86c32ef46d3e3f999e1567c4b14 Mon Sep 17 00:00:00 2001 From: John Parejko Date: Thu, 14 Nov 2024 12:19:40 -0800 Subject: [PATCH] Add new nodata flag, separate from edge --- python/lsst/ip/diffim/detectAndMeasure.py | 1 + tests/utils.py | 1 + 2 files changed, 2 insertions(+) diff --git a/python/lsst/ip/diffim/detectAndMeasure.py b/python/lsst/ip/diffim/detectAndMeasure.py index 2f18ed86..242596a5 100644 --- a/python/lsst/ip/diffim/detectAndMeasure.py +++ b/python/lsst/ip/diffim/detectAndMeasure.py @@ -186,6 +186,7 @@ class DetectAndMeasureConfig(pipeBase.PipelineTaskConfig, "base_PixelFlags_flag_interpolatedCenterAll", "base_PixelFlags_flag_badCenterAll", "base_PixelFlags_flag_edgeCenterAll", + "base_PixelFlags_flag_nodataCenterAll", "base_PixelFlags_flag_saturatedCenterAll", ), ) diff --git a/tests/utils.py b/tests/utils.py index 6b4cd75d..36ab0a14 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1064,6 +1064,7 @@ def _makeTruthSchema(): schema.addField("base_PixelFlags_flag_saturated", "Flag", "testing flag.") schema.addField("base_PixelFlags_flag_bad", "Flag", "testing flag.") schema.addField("base_PixelFlags_flag_edge", "Flag", "testing flag.") + schema.addField("base_PixelFlags_flag_nodata", "Flag", "testing flag.") schema.addField("base_PsfFlux_flag", "Flag", "testing flag.") schema.addField("base_ClassificationSizeExtendedness_value", "Flag", "testing flag.") schema.addField("deblend_nChild", "Flag", "testing flag.")