diff --git a/src/tracers.jl b/src/tracers.jl index f87ddf9..0c321be 100755 --- a/src/tracers.jl +++ b/src/tracers.jl @@ -29,7 +29,8 @@ Returns: """ NumberCountsTracer(cosmo::Cosmology, z_n, nz; b=1.0, res=1000, nz_interpolation="linear") = begin - z_w, nz_w = nz_interpolate(z_n, nz, res) + z_w, nz_w = nz_interpolate(z_n, nz; + res=res, mode=nz_interpolation) nz_norm = integrate(z_w, nz_w, SimpsonEven()) chi = cosmo.chi(z_w) @@ -64,7 +65,8 @@ WeakLensingTracer(cosmo::Cosmology, z_n, nz; IA_params = [0.0, 0.0], m=0.0, res=350, nz_interpolation="linear") = begin cosmo_type = cosmo.settings.cosmo_type - z_w, nz_w = nz_interpolate(z_n, nz, res) + z_w, nz_w = nz_interpolate(z_n, nz; + res=res, mode=nz_interpolation) res = length(z_w) nz_norm = integrate(z_w, nz_w, SimpsonEven()) chi = cosmo.chi(z_w) diff --git a/test/test_output.npz b/test/test_output.npz index 85de885..09404cf 100644 Binary files a/test/test_output.npz and b/test/test_output.npz differ