hippke / tls

Transit Least Squares: An optimized transit-fitting algorithm to search for periodic transits of small planets
MIT License
48 stars 24 forks source link

Test for command line + default config #42

Closed hippke closed 5 years ago

hippke commented 5 years ago
hippke commented 5 years ago

Coverage of tests.py as of 26 January (1.0.15 pre-release) is

catalog.py                                                               91     35    62%
core.py                                                                  50     42    16% <== ~95%
grid.py                                                                  66     13    80%
helpers.py                                                               56     17    70%
stats.py                                                                 36     11    69%
tls_constants.py                                                         45      0   100%
transit.py                                                               66      0   100%
transitleastsquares.py                                                  470    141    70%

However, these numbers are too low as numba lines are excluded. In core.py, every line must have been executed (but is reported as 16%). Switching of numba is no option, as the run-times are of order days.

hippke commented 5 years ago

As of 27 January, I put automated tests for the command-line interface on hold. It is not clear whether this functionality will find much use.