From 1aea871f8c7c9d5fa6673c560df2a997a617a24c Mon Sep 17 00:00:00 2001 From: nHackel Date: Tue, 30 Jul 2024 15:44:26 +0200 Subject: [PATCH] Add rownorm weighted reconstruction tests for MultiPatch operator --- test/ReconstructionGPU.jl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/ReconstructionGPU.jl b/test/ReconstructionGPU.jl index 8044605..98f8f62 100644 --- a/test/ReconstructionGPU.jl +++ b/test/ReconstructionGPU.jl @@ -103,6 +103,10 @@ for arrayType in arrayTypes c2 = reconstruct("MultiPatch", b; params..., arrayType = arrayType) @test isapprox(arraydata(c1), arraydata(c2), rtol = 0.02) + c3 = reconstruct("MultiPatch", b; params..., weightingParams = RowNormWeightingParameters()) + c4 = reconstruct("MultiPatch", b; params..., weightingParams = RowNormWeightingParameters(), arrayType = arrayType) + @test isapprox(arraydata(c3), arraydata(c4), rtol = 0.02) + # Test Kaczmarz since it uses specific functions and not just mul! bSF = MultiMPIFile([joinpath(datadir, "calibrations", "12.mdf")]) dirs = ["1.mdf", "2.mdf", "3.mdf", "4.mdf"] @@ -118,9 +122,9 @@ for arrayType in arrayTypes params[:reg] = [L2Regularization(0.0f0)] params[:tfCorrection] = false params[:solver] = Kaczmarz - c3 = reconstruct("MultiPatch", b; params...) - c4 = reconstruct("MultiPatch", b; params..., arrayType = arrayType) - @test isapprox(arraydata(c3), arraydata(c4)) + c5 = reconstruct("MultiPatch", b; params...) + c6 = reconstruct("MultiPatch", b; params..., arrayType = arrayType) + @test isapprox(arraydata(c5), arraydata(c6)) end end \ No newline at end of file