Skip to content

Commit

Permalink
Update pspline.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hippke committed Oct 3, 2020
1 parent 94fa1df commit 683a666
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion wotan/pspline.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def pspline(time, flux, edge_cutoff, max_splines, return_nsplines, verbose):
mask_outliers = np.ma.where(np.abs(1-detrended_flux) < constants.PSPLINES_STDEV_CUT*stdev)
if len(mask_outliers[0]) != 0: # Do not cut if zero points remain
newtime, newflux = cleaned_array(newtime[mask_outliers], newflux[mask_outliers])
print(newflux)
gam = LinearGAM(s(0, n_splines=max_splines))
search_gam = gam.gridsearch(newtime[:, np.newaxis], newflux, progress=False)
trend = search_gam.predict(time)
Expand Down

0 comments on commit 683a666

Please sign in to comment.