From 25021656793e9e3145c439ad24c2e1ceaa890f14 Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Thu, 7 Dec 2023 20:28:40 -0500 Subject: [PATCH] Handle destripe diff due to numpy 2.0 see spacetelescope/acstools#184 --- acstools/tests/test_wfc_destripe.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/acstools/tests/test_wfc_destripe.py b/acstools/tests/test_wfc_destripe.py index 67e08e38..533fb73b 100644 --- a/acstools/tests/test_wfc_destripe.py +++ b/acstools/tests/test_wfc_destripe.py @@ -26,7 +26,9 @@ def _destripe_one(self, inputfile, outsuffix, outputfile, truthfile, mask1=masks[0], mask2=masks[1]) # Compare results - self.compare_outputs([(outputfile, truthfile)], rtol=1e-6) + # NOTE: atol instead of rtol was set due to numpy 2.0, + # see https://github.com/spacetelescope/acstools/issues/184 + self.compare_outputs([(outputfile, truthfile)], atol=0.01) # jb5g05ubq = calibrated post-SM4 WFC full-frame exposures without masks # ja0x03ojq = calibrated polarizer WFC subarray exposures