Skip to content

Commit

Permalink
added tests WindowF_QMultipoles.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
foglienimatteo committed Feb 23, 2024
1 parent ade385e commit 91a617a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/WindowF_QMultipoles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function print_map_WindowFIntegrated_multipole(
@assert all([s_zs[i+1] > s_zs[i] for i in 1:(length(s_zs)-1)]) "s_zs must be a float vector of increasing values!"


BD = GaPSE.BackgroundData(file_data, z_max; names=names_bg, h=h_0)
BD = GaPSE.BackgroundData(file_data, 1000.0; names=names_bg, h=h_0)
s_of_z = Spline1D(BD.z, BD.comdist; bc="error")
ss = s_zs[1] 0.0 ? union([0.0], s_of_z.(s_zs[begin+1:end])) : s_of_z.(s_zs)

Expand Down
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ end

include("test_PowerSpectraeBOSS.jl")

#@testset "test WindowF_QMultipoles" begin
#include("test_WindowF_QMultipoles.jl")
#end
@testset "test WindowF_QMultipoles" begin
include("test_WindowF_QMultipoles.jl")
end



Expand Down
2 changes: 1 addition & 1 deletion test/test_WindowF_QMultipoles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ end
isfile(calc_name_file_Qmultipoles) && rm(calc_name_file_Qmultipoles)

ss, all_Q_l1 = GaPSE.readxall(name_file_Qmultipoles)
cs = GaPSE.CosmoSplines("datatest/WideA_ZA_background.dat", 0.05, 0.20; h=0.7, s_lim = 0.01, s_b = 0.0, 𝑓_evo = 0.0)
cs = GaPSE.CosmoSplines("datatest/WideA_ZA_background.dat", 0.05, 0.20; h=0.7, s_lim = 0.01, s_b1 = 0.0, 𝑓_evo1 = 0.0, s_b2 = 0.0, 𝑓_evo2 = 0.0)

GaPSE.print_map_WindowFIntegrated_multipole(cs.z_of_s.(ss), windowfint, calc_name_file_Qmultipoles,
"datatest/WideA_ZA_background.dat"; z_min=0.05, z_max=0.20, pr=false, L_max=4,
Expand Down

0 comments on commit 91a617a

Please sign in to comment.