Skip to content

Commit

Permalink
Add more BAD pixels for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkannawadi committed Sep 6, 2024
1 parent 90836d6 commit 2dff4d7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_cloughTocher2DInterpolate.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ def setUp(self):
self.maskedimage.mask[:, 110:111] = afwImage.Mask.getPlaneBitMask("BAD")
self.maskedimage.image[:, 110:111] = np.nan

# Set an asymmetric region as BAD
self.maskedimage.mask[41:42, 63:66] = afwImage.Mask.getPlaneBitMask("BAD")
self.maskedimage.image[41:42, 63:66] = np.nan
self.maskedimage.mask[42:43, 63:65] = afwImage.Mask.getPlaneBitMask("BAD")
self.maskedimage.image[42:43, 63:65] = np.nan
self.maskedimage.mask[44, 63] = afwImage.Mask.getPlaneBitMask("BAD")
self.maskedimage.image[44, 63] = np.nan

# Set a diagonal set of pixels as CR
for i in range(74, 78):
self.maskedimage.mask[i, i] = afwImage.Mask.getPlaneBitMask("CR")
Expand Down

0 comments on commit 2dff4d7

Please sign in to comment.