Skip to content

v2.0

Choose a tag to compare

@hippke hippke released this 11 Oct 18:37
· 9 commits to master since this release
207f4b6

What's new in 2.0

  • Bugfixes: 31 bugs fixed (#70–#100), see BUGLOG.md. Highlights: the slider windows now include their last sample, masks work with any flux value, robust clipping is two-sided, lowess uses a window in time units, cosine/cofiam work for any time offset, pspline and rspline converge properly, and NaN/inf, unsorted time and invalid arguments are handled (with warnings instead of silent NaN trends).
  • Performance: all commonly used methods are faster, most of them by an order of magnitude (table below).
  • Test coverage: a pytest suite of 563 tests covers all detrending methods, the API, edge cases, a regression test for every fixed bug, checks against independent reference implementations, and the trends of a real Kepler light curve against stored references. Run it with pytest tests.

Speed

Speed in millions of data points per second for the Kepler-10 light curve (all 15 long-cadence quarters, 52k points), window_length=0.5 d, default parameters, 2 CPU cores (the parallel methods scale with the number of cores). Speed-up: geometric mean over the benchmark datasets, compared to 1.x. Reproduce with python benchmarks/bench.py --method <name>; details in benchmarks/RESULTS.md.

Method Speed (million points per sec) Speed-up
mean 34 19x
median 11 21x
biweight 5.0 60x
rspline 0.34 2.3x
lowess 0.33 9.1x
hspline 0.22 14x
cosine 0.11 1.1x
cofiam 0.037 1.6x
pspline 0.0003* 1.3x

* longest Kepler-10 segment (1,925 points)