Skip to content

Commit

Permalink
test update
Browse files Browse the repository at this point in the history
  • Loading branch information
RainerHeintzmann committed Sep 16, 2024
1 parent cc71ff5 commit 9e9f30d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/fourier_filtering.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Random.seed!(42)
@test (gf,gfc, rtol=1e-2) # it is realatively inaccurate due to the kernel being generated in different places
gfr = filter_gaussian(x, sigma, real_space_kernel=true)
@test (gfr, gfc) # it can be debated how to best normalize a Gaussian filter
gfr = filter_gaussian(zeros(5).+1im, sigma, real_space_kernel=true)
gfr = filter_gaussian(zeros(5).+1im, (1.0,), real_space_kernel=true)
@test (gfr, zeros(5).+1im) # it can be debated how to best normalize a Gaussian filter
end

Expand All @@ -30,8 +30,8 @@ Random.seed!(42)
k = k./sum(k) # different than "normal".
gf2 = conv_psf(x, k)
@test (gf,gf2, rtol=1e-2) # it is realatively inaccurate due to the kernel being generated in different places
gf2 = filter_gaussian(zeros(5), sigma, real_space_kernel=true)
@test (gf2, zeros(5)) # it can be debated how to best normalize a Gaussian filter
gf2 = filter_gaussian(zeros(sz), sigma, real_space_kernel=true)
@test (gf2, zeros(sz)) # it can be debated how to best normalize a Gaussian filter
end
@testset "Other filters" begin
@test filter_hamming(FourierTools.delta(Float32, (3,)), border_in=0.0, border_out=1.0) [0.23,0.54, 0.23]
Expand Down

0 comments on commit 9e9f30d

Please sign in to comment.