Skip to content

Commit

Permalink
fixes bug in spline check (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
damonge committed Aug 1, 2022
1 parent 7e9d3fe commit 8ab4e64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyccl/tracers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def _check_background_spline_compatibility(cosmo, z):
"""Check that a redshift array lies within the support of the
CCL background splines.
"""
cosmo.compute_distances()
a_bg, _ = _get_spline1d_arrays(cosmo.cosmo.data.chi)
a = 1/(1+z)

Expand Down

0 comments on commit 8ab4e64

Please sign in to comment.