Skip to content

Commit

Permalink
Added mask planes from template and science fake plane into difference
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoSanchez committed Oct 17, 2023
1 parent e4e8c90 commit 41f9f53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/ip/diffim/subtractImages.py
Original file line number Diff line number Diff line change
Expand Up @@ -1088,8 +1088,8 @@ def _interpolateImage(maskedImage, badMaskPlanes, fallbackValue=None):
The number of masked pixels that were replaced.
"""
imgBadMaskPlanes = [
maskPlane for maskPlane in badMaskPlanes if maskPlane in maskedImage.mask.getMaskPlaneDict()
]
maskPlane for maskPlane in badMaskPlanes if maskPlane in maskedImage.mask.getMaskPlaneDict()
]

image = maskedImage.image.array
badPixels = (maskedImage.mask.array & maskedImage.mask.getPlaneBitMask(imgBadMaskPlanes)) > 0
Expand Down

0 comments on commit 41f9f53

Please sign in to comment.