Skip to content

Commit

Permalink
better scale cuts
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimerzp committed May 14, 2024
1 parent b7cef96 commit a990585
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/data_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ function _apply_scale_cuts(s, yaml_file)
for cl in yaml_file["order"]
t1, t2 = cl["tracers"]
cls = cl["cls"]
lmin, lmax = cl["ell_cuts"]
for cl_name in cls
ind = s.indices(cl_name, (t1, t2),
ell__gt=lmin, ell__lt=lmax)
append!(indices, pyconvert(Vector{Int}, ind))
if "ell_cuts" in keys(cl)
lmin, lmax = cl["ell_cuts"]
for cl_name in cls
ind = s.indices(cl_name, (t1, t2),
ell__gt=lmin, ell__lt=lmax)
append!(indices, pyconvert(Vector{Int}, ind))
end
end
end
s.keep_indices(indices)
Expand Down

0 comments on commit a990585

Please sign in to comment.