Skip to content

Commit

Permalink
fix large-scale ell to k conversion (h/t Boris Bolliet)
Browse files Browse the repository at this point in the history
  • Loading branch information
msyriac committed Jan 29, 2021
1 parent 8b285f4 commit 6828bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hmvec/cosmology.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def limber_integral(ells,zs,ks,Pzks,gzs,Wz1s,Wz2s,hzs,chis):
f = interp1d(ks,Pzks[0],bounds_error=True)
Cells = np.zeros(ells.shape)
for i,ell in enumerate(ells):
kevals = ell/chis
kevals = (ell+0.5)/chis
if zs.size>1:
# hack suggested in https://stackoverflow.com/questions/47087109/evaluate-the-output-from-scipy-2d-interpolation-along-a-curve
# to get around scipy.interpolate limitations
Expand Down

0 comments on commit 6828bab

Please sign in to comment.