Skip to content

Commit

Permalink
updated test loglikes to match for camb v1.4.0 (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
itrharrison authored Feb 27, 2023
1 parent 3a98c76 commit e415f4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion soliket/tests/test_clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"nonlinear": False,
"kmax": 10.0,
"dark_energy_model": "ppf",
"bbn_predictor": "PArthENoPE_880.2_standard.dat"
}
},
},
Expand All @@ -43,7 +44,7 @@ def test_clusters_loglike():

lnl = model_fiducial.loglikes({})[0]

assert np.isclose(lnl, -855.0)
assert np.isclose(lnl, -854.89406321)


def test_clusters_n_expected():
Expand Down
2 changes: 1 addition & 1 deletion soliket/tests/test_cross_correlation.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def test_shearkappa_hartlap(request):
model = get_model(info)
loglikes_hartlap, derived = model.loglikes()

assert np.isclose(np.abs(loglikes - loglikes_hartlap), 0.00104092)
assert np.isclose(np.abs(loglikes - loglikes_hartlap), 0.0010403)


def test_shearkappa_deltaz(request):
Expand Down

0 comments on commit e415f4e

Please sign in to comment.