From e415f4e87da407a2317a19338a7211d1f17c5849 Mon Sep 17 00:00:00 2001 From: Ian Harrison Date: Mon, 27 Feb 2023 10:30:41 +0000 Subject: [PATCH] updated test loglikes to match for camb v1.4.0 (#98) --- soliket/tests/test_clusters.py | 3 ++- soliket/tests/test_cross_correlation.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/soliket/tests/test_clusters.py b/soliket/tests/test_clusters.py index b2df1b38..f5ad6fe0 100644 --- a/soliket/tests/test_clusters.py +++ b/soliket/tests/test_clusters.py @@ -26,6 +26,7 @@ "nonlinear": False, "kmax": 10.0, "dark_energy_model": "ppf", + "bbn_predictor": "PArthENoPE_880.2_standard.dat" } }, }, @@ -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(): diff --git a/soliket/tests/test_cross_correlation.py b/soliket/tests/test_cross_correlation.py index 20f2eff4..ddc6c9af 100644 --- a/soliket/tests/test_cross_correlation.py +++ b/soliket/tests/test_cross_correlation.py @@ -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):