Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeRZP committed Oct 17, 2024
1 parent df7c7df commit 23372fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tracers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
Binary file modified test/test_output.npz
Binary file not shown.

0 comments on commit 23372fb

Please sign in to comment.