From 2dff4d7762e13211b1d260d7df08cdbd32a50bba Mon Sep 17 00:00:00 2001 From: Arun Kannawadi Date: Fri, 6 Sep 2024 16:36:42 -0400 Subject: [PATCH] Add more BAD pixels for unit tests --- tests/test_cloughTocher2DInterpolate.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_cloughTocher2DInterpolate.py b/tests/test_cloughTocher2DInterpolate.py index ea50c3c2e..e75e433a3 100644 --- a/tests/test_cloughTocher2DInterpolate.py +++ b/tests/test_cloughTocher2DInterpolate.py @@ -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")