Skip to content

Commit

Permalink
Updated test_likelihood to account for the new normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
vhaasteren committed Jan 8, 2025
1 parent 569683a commit d983de7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def compute_like(self, npsrs=1, inc_corr=False, inc_kernel=False, cholesky_spars
TNrs.append(np.dot(Ts[ct].T, sl.cho_solve(cfs[ct], psr.residuals)))
TNTs.append(np.dot(Ts[ct].T, sl.cho_solve(cfs[ct], Ts[ct])))
loglike += -0.5 * (np.dot(psr.residuals, sl.cho_solve(cfs[ct], psr.residuals)) + logdets[ct])
loglike += -0.5 * len(psr.residuals) * np.log(2 * np.pi)

TNr = np.concatenate(TNrs)
phi = sl.block_diag(*phis)
Expand Down

0 comments on commit d983de7

Please sign in to comment.