Skip to content

Commit

Permalink
Generate full-amp footprint from bbox.
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Sep 30, 2022
1 parent d96a0d6 commit 928b855
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/lsst/cp/pipe/defects.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@ def findHotAndColdPixels(self, exp, nSigma):
except InvalidParameterError:
# This occurs if the image sigma value is 0.0.
# Let's mask the whole area.
minValue = np.nanmin(ampImg.image.array) - 1.0
threshold = afwDetection.createThreshold(minValue, 'value', polarity=True)
footprintSet = afwDetection.FootprintSet(ampImg, threshold)
footprintSet = afwDetection.FootprintSet(ampImg.getBBox())

footprintSet.setMask(maskedIm.mask, ("DETECTED" if polarity else "DETECTED_NEGATIVE"))

Expand Down

0 comments on commit 928b855

Please sign in to comment.