From 5f1525651eefafdaa981dc6aed65a7a6fc6cdbcc Mon Sep 17 00:00:00 2001 From: sgiardie Date: Thu, 14 Nov 2024 15:10:59 +0000 Subject: [PATCH] fixing the chi2 value printed --- mflike/mflike.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mflike/mflike.py b/mflike/mflike.py index 0bb1bc9..7c96014 100644 --- a/mflike/mflike.py +++ b/mflike/mflike.py @@ -143,7 +143,7 @@ def _loglike(self, cl, fg_totals, params_values): # logp = -0.5 * (delta @ self.inv_cov @ delta) chi2 = self._fast_chi_squared(self.inv_cov, delta) logp = -0.5 * chi2 + self.logp_const - self.log.debug(f"Log-likelihood value computed = {logp} (Χ² = {-2 * chi2})") + self.log.debug(f"Log-likelihood value computed = {logp} (Χ² = {chi2})") return logp def loglike(self, cl, fg_totals, **params_values):