From effe5b89595d04b3fe0ee0204d02c3f1a75d274d Mon Sep 17 00:00:00 2001 From: Ian Sullivan Date: Tue, 28 Oct 2025 09:20:51 -0700 Subject: [PATCH] The SPIKE mask plane will be NO_DATA in the template --- python/lsst/ip/diffim/detectAndMeasure.py | 7 ++----- python/lsst/ip/diffim/subtractImages.py | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/python/lsst/ip/diffim/detectAndMeasure.py b/python/lsst/ip/diffim/detectAndMeasure.py index 9e4206c86..0adf1dd42 100644 --- a/python/lsst/ip/diffim/detectAndMeasure.py +++ b/python/lsst/ip/diffim/detectAndMeasure.py @@ -302,7 +302,6 @@ class DetectAndMeasureConfig(pipeBase.PipelineTaskConfig, "base_PixelFlags_flag_saturatedCenter", "base_PixelFlags_flag_saturated_templateCenter", "base_PixelFlags_flag_spikeCenter", - "base_PixelFlags_flag_spike_templateCenter", ), ) clearMaskPlanes = lsst.pex.config.ListField( @@ -426,11 +425,9 @@ def setDefaults(self): # Keep track of which footprints contain streaks self.measurement.plugins["base_PixelFlags"].masksFpAnywhere = [ - "STREAK", "INJECTED", "INJECTED_TEMPLATE", "HIGH_VARIANCE", "SATURATED_TEMPLATE", - "SPIKE", "SPIKE_TEMPLATE"] + "STREAK", "INJECTED", "INJECTED_TEMPLATE", "HIGH_VARIANCE", "SATURATED_TEMPLATE", "SPIKE"] self.measurement.plugins["base_PixelFlags"].masksFpCenter = [ - "STREAK", "INJECTED", "INJECTED_TEMPLATE", "HIGH_VARIANCE", "SATURATED_TEMPLATE", - "SPIKE", "SPIKE_TEMPLATE"] + "STREAK", "INJECTED", "INJECTED_TEMPLATE", "HIGH_VARIANCE", "SATURATED_TEMPLATE", "SPIKE"] self.skySources.avoidMask = ["DETECTED", "DETECTED_NEGATIVE", "BAD", "NO_DATA", "EDGE"] def validate(self): diff --git a/python/lsst/ip/diffim/subtractImages.py b/python/lsst/ip/diffim/subtractImages.py index bae98b493..073bb78c6 100644 --- a/python/lsst/ip/diffim/subtractImages.py +++ b/python/lsst/ip/diffim/subtractImages.py @@ -284,7 +284,7 @@ class AlardLuptonSubtractBaseConfig(lsst.pex.config.Config): ) renameTemplateMask = lsst.pex.config.ListField( dtype=str, - default=("SAT", "INJECTED", "INJECTED_CORE", "SPIKE"), + default=("SAT", "INJECTED", "INJECTED_CORE",), doc="Mask planes from the template to propagate to the image difference" "with '_TEMPLATE' appended to the name." )