Skip to content

Commit 5b326b9

Browse files
authored
Merge pull request #444 from lsst/tickets/DM-53063
DM-53063: remove unnecessary checks for `SPIKE` mask on the template
2 parents b8cb2b7 + effe5b8 commit 5b326b9

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

python/lsst/ip/diffim/detectAndMeasure.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ class DetectAndMeasureConfig(pipeBase.PipelineTaskConfig,
302302
"base_PixelFlags_flag_saturatedCenter",
303303
"base_PixelFlags_flag_saturated_templateCenter",
304304
"base_PixelFlags_flag_spikeCenter",
305-
"base_PixelFlags_flag_spike_templateCenter",
306305
),
307306
)
308307
clearMaskPlanes = lsst.pex.config.ListField(
@@ -426,11 +425,9 @@ def setDefaults(self):
426425

427426
# Keep track of which footprints contain streaks
428427
self.measurement.plugins["base_PixelFlags"].masksFpAnywhere = [
429-
"STREAK", "INJECTED", "INJECTED_TEMPLATE", "HIGH_VARIANCE", "SATURATED_TEMPLATE",
430-
"SPIKE", "SPIKE_TEMPLATE"]
428+
"STREAK", "INJECTED", "INJECTED_TEMPLATE", "HIGH_VARIANCE", "SATURATED_TEMPLATE", "SPIKE"]
431429
self.measurement.plugins["base_PixelFlags"].masksFpCenter = [
432-
"STREAK", "INJECTED", "INJECTED_TEMPLATE", "HIGH_VARIANCE", "SATURATED_TEMPLATE",
433-
"SPIKE", "SPIKE_TEMPLATE"]
430+
"STREAK", "INJECTED", "INJECTED_TEMPLATE", "HIGH_VARIANCE", "SATURATED_TEMPLATE", "SPIKE"]
434431
self.skySources.avoidMask = ["DETECTED", "DETECTED_NEGATIVE", "BAD", "NO_DATA", "EDGE"]
435432

436433
def validate(self):

python/lsst/ip/diffim/subtractImages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class AlardLuptonSubtractBaseConfig(lsst.pex.config.Config):
284284
)
285285
renameTemplateMask = lsst.pex.config.ListField(
286286
dtype=str,
287-
default=("SAT", "INJECTED", "INJECTED_CORE", "SPIKE"),
287+
default=("SAT", "INJECTED", "INJECTED_CORE",),
288288
doc="Mask planes from the template to propagate to the image difference"
289289
"with '_TEMPLATE' appended to the name."
290290
)

0 commit comments

Comments
 (0)