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

Slow statistics in large data #66

Closed hippke closed 5 years ago

hippke commented 5 years ago

For short periods (many transits) and large data (Kepler K1), the statistics calculation takes a long time Cause: pink_noise in def snr_stats Solution: Disable for now?

hippke commented 5 years ago

solved by moving pinknoise = () in stats.py out of the main loop:

try:
    pinknoise = pink_noise(flux_ootr, int(numpy.mean(per_transit_count)))
except:
    pass
hippke commented 5 years ago

Fixed in 1.0.23