Skip to content

Commit 4e253b9

Browse files
committed
Fixed a white light curve fitting bug where the error array was not filtered correctly.
1 parent c7775fd commit 4e253b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exoiris/wlpf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, tsa: TSLPF):
3232
m = isfinite(mf)
3333
times.append(t[m])
3434
fluxes.append(mf[m])
35-
errors.append(nanstd(where(m, f, nan), 0) / sqrt(f.shape[0]))
35+
errors.append(nanstd(f, 0)[m] / sqrt(f.shape[0]))
3636
covs = [(t-t.mean())[:, newaxis] for t in times]
3737
self.std_errors = errors
3838

0 commit comments

Comments
 (0)