Skip to content

Commit

Permalink
fixing the chi2 value printed
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiardie committed Nov 14, 2024
1 parent 894e3f3 commit 5f15256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mflike/mflike.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5f15256

Please sign in to comment.