waqasbhatti / astrobase

Python modules for light curve work and variable star astronomy
MIT License
55 stars 12 forks source link

fixed magseriesepoch in case of more than one minval #54

Closed joshuawallace closed 6 years ago

joshuawallace commented 6 years ago

I actually ran into a situation where I had more than one value that passed fitmagminind = npwhere(fitmags == npmin(fitmags)). This creates problems down the pipeline when subsequent functions are expecting only a since epoch value.

waqasbhatti commented 6 years ago

Thanks! This would probably happen often with flat transit LCs, so it's good that you caught it.

joshuawallace commented 6 years ago

Indeed, it happened with a prewhitened light curve.