Skip to content

Commit

Permalink
Add missing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
roflmaostc committed Feb 9, 2024
1 parent fcec9cc commit b0326cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ using Zygote
sinogram2 = radon(array3, angles2; geometry)
array_filtered = backproject_filtered(sinogram2, angles2; geometry)
@test (array_filtered[5:28, 5:28] / sum(array_filtered[5:28, 5:28]) .+ 0.1, array3[5:28, 5:28] / sum(array3[5:28, 5:28]) .+ 0.1, rtol=0.05)

geometry = RadonParallelCircle(32, -15:0.1:15)
sinogram2 = radon(array3, angles2; geometry)
@test (backproject_filtered(sinogram2, angles2; geometry, filter=ones((size(sinogram2, 1)))), backproject(sinogram2, angles2; geometry))
end

@testset "Test gradients" begin
Expand Down

0 comments on commit b0326cf

Please sign in to comment.