Skip to content

Commit

Permalink
Changed logdet=True in one call in MarginalizingNmat, so we don't nee…
Browse files Browse the repository at this point in the history
…d to include cumbersome tests to not decrease coverage. Is never called anyway, and it doesn't slow things down.
  • Loading branch information
vhaasteren committed Sep 29, 2023
1 parent d959b7a commit e1f0990
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions enterprise/signals/gp_signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,10 +851,7 @@ def solve(self, right, left_array=None, logdet=False):
if right.ndim == 1 and left_array is right:
res = right

if logdet:
rNr, logdet_N = self.Nmat.solve(res, left_array=res, logdet=logdet)
else:
rNr = self.Nmat.solve(res, left_array=res, logdet=logdet)
rNr, logdet_N = self.Nmat.solve(res, left_array=res, logdet=True)

MNr = self.MNr(res)
ret = rNr - np.dot(MNr, self.cf(MNr))
Expand Down

0 comments on commit e1f0990

Please sign in to comment.