Skip to content

Commit

Permalink
fixed floating point error (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
damonge committed Nov 16, 2022
1 parent 13077da commit 290896e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyccl/tests/test_cls.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ def test_cls_mg():
cl0 = ccl.angular_cl(cosmo_MG, tr_MG, tr_MG, ell)
cosmo_calc.compute_growth()
cl1 = ccl.angular_cl(cosmo_calc, tr_calc, tr_calc, ell)
assert not (1 - cl1 / cl0).any() # all equal to zero
assert np.all(np.fabs(1 - cl1 / cl0) < 1E-10)

0 comments on commit 290896e

Please sign in to comment.