diff --git a/python/lsst/meas/algorithms/maskStreaks.py b/python/lsst/meas/algorithms/maskStreaks.py index 954311dd..2da63293 100644 --- a/python/lsst/meas/algorithms/maskStreaks.py +++ b/python/lsst/meas/algorithms/maskStreaks.py @@ -600,7 +600,9 @@ def run(self, maskedImage): """ streaks = self.find(maskedImage) - maskedImage.mask.addMaskPlane(self.config.streaksMaskPlane) + if (self.config.streaksMaskPlane != "STREAK") and \ + (self.config.streaksMaskPlane not in maskedImage.mask.getMaskPlaneDict()): + maskedImage.mask.addMaskPlane(self.config.streaksMaskPlane) maskedImage.mask.array[streaks.mask] |= maskedImage.mask.getPlaneBitMask(self.config.streaksMaskPlane) return pipeBase.Struct(