Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/test_sinogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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] = (
Expand Down
Loading