Skip to content

Commit

Permalink
bodi fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpope committed May 4, 2020
1 parent 789610c commit 33eedb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion notebooks/lightkurve.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.7.4"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions src/standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ def detrend(dataset,campaign=5,splits=None,quiet=False,save_dir='.',seed=0,flux_

mper = ~(ds.mflags[iset] & M_PERIODIC).astype(bool) # Apply the transit mask, if any
mthf = ~(ds.quality & 2**20).astype(bool) # Mask out the thruster firings
minf = isfinite(cflux)
# minf = isfinite(cflux)

mlow, mhigh = sigma_clip(cflux, max_iter = 10, max_sigma = 5, separate_masks = True, mexc = mper&mthf)
minf, mlow, mhigh = sigma_clip(cflux, max_iter = 10, max_sigma = 5, separate_masks = True, mexc = mper&mthf)
ds.mflags[iset][~minf] |= M_NOTFINITE
ds.mflags[iset][~mhigh] |= M_OUTLIER_U
ds.mflags[iset][~mlow] |= M_OUTLIER_D
Expand Down

0 comments on commit 33eedb9

Please sign in to comment.