Skip to content

Commit

Permalink
Clear the streak-specific detected mask plane before streak detection
Browse files Browse the repository at this point in the history
  • Loading branch information
isullivan committed Dec 10, 2024
1 parent fb3a15d commit a421749
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/lsst/ip/diffim/detectAndMeasure.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,8 @@ def _runStreakMasking(self, difference):
self.config.streakBinFactor)
binnedExposure = afwImage.ExposureF(binnedMaskedImage.getBBox())
binnedExposure.setMaskedImage(binnedMaskedImage)
# Clear the DETECTED mask plane before streak detection
binnedExposure.mask &= ~binnedExposure.mask.getPlaneBitMask('DETECTED')
# Rerun detection to set the DETECTED mask plane on binnedExposure
sigma = difference.psf.computeShape(difference.psf.getAveragePosition()).getDeterminantRadius()
_table = afwTable.SourceTable.make(afwTable.SourceTable.makeMinimalSchema())
Expand Down

0 comments on commit a421749

Please sign in to comment.