From bbaace3f8429c57e27cba41a68e40402eda1e628 Mon Sep 17 00:00:00 2001 From: Simon Birrer Date: Wed, 7 Aug 2024 15:05:15 -0400 Subject: [PATCH] tests updated --- test/test_Likelihood/test_hierarchy_likelihood.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_Likelihood/test_hierarchy_likelihood.py b/test/test_Likelihood/test_hierarchy_likelihood.py index d4b5ecd..9c8ac0d 100644 --- a/test/test_Likelihood/test_hierarchy_likelihood.py +++ b/test/test_Likelihood/test_hierarchy_likelihood.py @@ -196,7 +196,7 @@ def test_lens_log_likelihood(self): kwargs_kin=kwargs_kin, kwargs_los=kwargs_los, ) - assert ln_likelihood_zero == -np.inf + assert np.nan_to_num(ln_likelihood_zero) <= -10 ** 300 ln_likelihood_kappa_ext = self.likelihood_kappa_ext.lens_log_likelihood( self.cosmo,