Skip to content

Commit

Permalink
Merge pull request #399 from lsst/tickets/DM-46388
Browse files Browse the repository at this point in the history
DM-46388: Remove unnecessary STREAK
  • Loading branch information
parejkoj authored Dec 4, 2024
2 parents bcfae0f + a4ef957 commit 8f1c07a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/lsst/meas/algorithms/maskStreaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8f1c07a

Please sign in to comment.