Skip to content

Commit

Permalink
bugfix dvv
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLecocq committed Dec 9, 2023
1 parent 5e5891d commit 38ef9af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msnoise/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2366,7 +2366,7 @@ def wstd(group, dttname, errname):
group[errname][group[errname] == 0] = 1e-6
w = 1. / group[errname]
wavg = (d * w).sum() / w.sum()
N = len(np.nonzero(w)[0])
N = len(np.nonzero(w.values)[0])
wstd = np.sqrt(np.sum(w * (d - wavg) ** 2) / ((N - 1) * np.sum(w) / N))
return wstd

Expand Down

0 comments on commit 38ef9af

Please sign in to comment.