hippke / tls

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

Return flat power spectrum if no transit was fit #38

Closed hippke closed 5 years ago

hippke commented 5 years ago

CASE: Light curve is so flat the the transit_depth_min (default 10 ppm) causes no transit to be fit. Current behaviour: TLS raises a UserError and quits Desired behaviour: Raise a warning and return a flat power spectrum + all zero values

hippke commented 5 years ago

Added incl test