Skip to content

Commit

Permalink
catches error in the computation of confidence intervals for null tim…
Browse files Browse the repository at this point in the history
…e series
  • Loading branch information
Aurelien PONTE committed Jun 21, 2018
1 parent d5548e4 commit f00d018
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utide/confidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ def _confidence(coef, cnstit, opt, t, e, tin, elor, xraw, xmod, W, m, B,
varcov_mCw[c, :2, :2] = Duu

if not opt.white:
Duu = Puu[c] * Duu / np.trace(Duu)
Duu = Puu[c] * Duu
if np.trace(Duu) != 0. :
Duu = Duu / np.trace(Duu)
varcov_mCc[c, :2, :2] = Duu

if not opt.twodim:
Expand Down

1 comment on commit f00d018

@wesleybowman
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note, if you have commit messages that are <50 characters in length, they show up better in git log --oneline

A general guide for beautiful commits: https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html

Please sign in to comment.