Closed fergalm closed 8 years ago
The problem here is that modshift was too aggressive on the outlier rejection. This resulted in having only one point in-transit after outlier rejection, which casued the code to choke. I think it was over aggresive due to the very noisy nature of this light curve, combined with a short transit duration.
I've changed the detrending length from one-tenth of a transit duration to a constant value of one long cadence duration (~29.44 minutes). It fixes this system. We'll see if there are any other unforseen consequences - one worry is perhaps it will reject less outliers than before on long-period systems - we'll see.
212591132, C6 fails with the error ZeroDivisionError('float division by zero')
The backtrace is
The problem seems to be that mod_Fred is zero. Examining the lightcurve suggests that there is only 1 or 2 points in transit, which may be causing the error. The code should exit with a more useful error message, or better yet, check for this problem and return sane values.