Skip to content

Commit

Permalink
Merge pull request #96 from simonsobs/fix-print
Browse files Browse the repository at this point in the history
fixing the chi2 value printed in MFLike
  • Loading branch information
sgiardie authored Nov 14, 2024
2 parents 894e3f3 + 5f15256 commit 2d681f8
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 2d681f8

Please sign in to comment.