Changelog
This describes changes to TLS.
The versioning scheme is: major.minor.revision
- major:
Will be increased when the API (the interface) changes in an incompatible way. Will be documented in this changelog.
- minor:
Will be increased when adding functionality in a backwards-compatible manner. Will be documented in this changelog.
- revision:
Will be increased for backwards-compatible bug fixes and very minor added functionality. Will not always be documented in this changelog.
Version 2.0 (5 October 2026)
- Changed:
30-60x faster searches with unchanged detection rates. The search is reimplemented as a stack of fused numba kernels (algebraic chi2 via A2/AR correlations, stable-run prefix sums, bucket sort, bucket-free walk fold on regular cadence, certified coarse-template screening for the exact backends, piecewise-linear templates for the default backend, pre-binning, scout durations, persistent worker pools). Backends are pluggable with the new
backendparameter:numba(the original TLS 1.33 algorithm),fused(exact up to rounding, bit-identical results tonumbaup to floating-point rounding), andfused-pl(the new default; approximate, validated against the exact statistic on hundreds of injection-recovery cases with identical recovery rates and with \(|\Delta\mathrm{SDE}| \leq 0.04\).- Fixed:
18 bugs of TLS 1.33, 10 of which change results: the final T0 fit now uses the measurement uncertainties (previously the flux was used as dy), the out-of-transit mask for the SNR statistics was about P times too narrow, “no transit fit” was detected with an exact float comparison and could yield a garbage detection, data points with t <= 0 were silently dropped, user-supplied transit-shape parameters and stellar limits were ignored by the default template and the duration grid, short light curves (~ < 300 points) crashed, custom templates longer than 1 d were broken, the period uncertainty wrapped negative indices, the duration template could come from a different period than reported, and the command line interface was broken in five ways. The duration-limit mass pairing reported by Talens et al. (2026, arXiv:2609.15493) is fixed with density-clipped interval extremes (default results bit-identical).
- Changed:
TLS now uses its own limb-darkened transit model (all limb-darkening laws of batman; agreement with batman <= 1e-8 for linear/quadratic laws).
batmanis no longer a runtime dependency, but remains an optional dependency for the test suite.- Added:
Opt-in analytic SDE background detrending with
power(SDE_detrend="hybrid"): subtracts the extreme-value background a + b*ln(P) (in its GEV generalization for heavy-tailed noise) before the running median. Useful for light curves whose SDE(P) background is not white, e.g., due to systematics plateaus. Default ("median") unchanged.- Added:
Parameter
T0_search_marginto control the T0 grid resolution of the search separately from the final T0 fit.- Added:
A golden test set that freezes all 41 result fields of 14 diverse cases, a brute-force oracle for the core search, and a test suite of 592 tests.
- Changed:
Modern packaging with
pyproject.toml(Python >= 3.9, NumPy >= 1.22); tests are pytest-based and located in the top-leveltests/directory. The public API is unchanged.
Version 1.0.23 (12 March 2019)
- Fixed:
A bug in the post-detection statistics which caused a delay in large dataset (e.g., Kepler K1)
Version 1.0.21 (14 February 2019)
- Fixed:
A bug in
cleaned_arraywhich caused an error in case invaliddyvalues were supplied. Relevant for TESS FITS files. These should now run including uncertainties.- Added:
New statistics:
before_transit_count,in_transit_count,after_transit_countyield the number of data points in a bin of length transit duration before, in and after the phase-folded transit.- Added:
New parameter
show_progress_bar(bool, default: True) When set toFalse, no progress bar (usingtqdm) will be shown- Added:
Python 2 compatibility. For now, it is only single-core.
Version 1.0.20 (11 February 2019)
- Fixed:
A bug which erroneously interchanged power and power_raw
Version 1.0.19 (10 February 2019)
- Fixed:
A bug in the calculation of statistics which caused TLS to stall in some cases
Version 1.0.17 (07 February 2019)
- Fixed:
A bug in the calculation of the SNR statistic (post-fit statistics)
- Changed:
Major code refactoring
- Added:
Extensive test suite
- Added:
Warnings for the user, e.g. in case inputs are dubious. Numpy warnings are now a bug (if any left) and no longer hidden.
- Added:
Improved command line interface (now has its own command). Added all recent new functionality to the command line interface (all except custom transit shapes)
Version 1.0.16 (29 January 2019)
- Fixed:
A bug which caused to return an empty SDE-ogram if very small uncertainties
dywere provided.- Changed:
Switched linear interpolation code of model shapes to a numba implementation. It is 2x faster, 20ms –> 10ms which is currently irrelevant if the shape is calculated only once per light curve, but will become relevant when the compensation for morphological light-curve distortions will be implemented. Then, the shapes will be re-calculated many times for a range of periods. Another advantage is that the dependency on scipy can now be removed. Scipy is still required for testing, however.
Version 1.0.15 (27 January 2019)
- Changed:
If no transits fits were performed during a search, a flat SDE-ogram and SDE=0 are returned, and a warning is raised. Previous behavior was to raise an exception and quit. This can happen if
transit_depth_minis set to a large value (e.g., 1000 ppm) and the light curve is flat (e.g., Kepler-quality with good detrending and no transits), so that the threshold causes no transit fits to be performed.- Changed:
Only useful warnings are printed to the user console. Internal processing issues (e.g., NaN values) are now hidden.
- Changed:
Catalog information (e.g., from the Kepler K2 EPIC catalog) which includes missing values now returns
NaNvalues. Previously,--was returned. TheNaNvalues must still be evaluated by the user before feeding them into a TLS model.- Changed:
Catalog information is now entirely pulled using AstroQuery, from Vizier (Kepler K1, K2) and MAST. Dependency to package
kplrhas been dropped. This increases reliability as the MAST API was unstable in the past.- Fixed:
A bug in the command-line version was fixed which caused the search to quit under certain circumstances.
Version 1.0.14. (24 January 2019)
- Added:
Automatically run
cleaned_arraybefore performing a search- Added:
New return value:
results.transit_depths_uncertainties- Added:
New parameter:
use_threads- Changed:
period_gridlimited to physically plausible values to avoid generating empty or extremely large grids- Removed:
numpy.set_printoptions(threshold=numpy.nan)which fails in numpy 1.16+ (the latest version as of 24 Jan 2019)
Version 1.0 (01 January 2018)
Initial release.