From d514f9388f8e24e61b2ec7b62807d80f61c02d03 Mon Sep 17 00:00:00 2001 From: Garrett Wright Date: Mon, 22 Jun 2026 14:43:21 -0400 Subject: [PATCH] fix some wierd unrelated numerical issue in dead sinogram code --- tests/test_sinogram.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_sinogram.py b/tests/test_sinogram.py index dc173449b9..9e33414dca 100644 --- a/tests/test_sinogram.py +++ b/tests/test_sinogram.py @@ -132,7 +132,7 @@ def test_project_multidim(num_ang): single_sinogram = img.project(rads) # These should be allclose up to determinism in the FFT and NUFFT. - np.testing.assert_allclose(s[i, j : j + 1], single_sinogram) + np.testing.assert_allclose(s[i, j : j + 1], single_sinogram, atol=1e-8) # Next individually compute sk's radon transform for each image. # Note, `radon` does not admit read only views, so the slice is copied. @@ -215,7 +215,9 @@ def test_backproject_multidim(num_ang): back_project = single_sinogram.backproject(rads) # These should be allclose up to determinism. - np.testing.assert_allclose(ours_backward[i, j : j + 1], back_project[0]) + np.testing.assert_allclose( + ours_backward[i, j : j + 1], back_project[0], atol=1e-08 + ) # Next individually compute sk's iradon transform for each image. reference_back_projects[i, j] = (