Skip to content

Commit

Permalink
Fix logic error that resulted in bad mask values.
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Feb 4, 2025
1 parent 3c15c4d commit 45c7132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/cp/pipe/cpDark.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def run(self, inputExp):
interpolateFromMask(
maskedImage=crImage.getMaskedImage(),
fwhm=self.config.psfFwhm,
growSaturatedFootprints=self.config.crGrow,
growSaturatedFootprints=0,
maskNameList=list(self.config.maskListToInterpolate),
useLegacyInterp=self.config.useLegacyInterp,
)
Expand All @@ -150,7 +150,7 @@ def run(self, inputExp):

# Copy results to input frame.
crBit = crImage.mask.getPlaneBitMask("CR")
crPixels = np.bitwise_and(crImage.mask.array, crBit)
crPixels = (crImage.mask.array & crBit) > 0
inputExp.mask.array[crPixels] |= crBit
self.log.info("Number of CR pixels: %d",
np.count_nonzero(crPixels))
Expand Down

0 comments on commit 45c7132

Please sign in to comment.