TzeGoh / Stripe82RRLyrae

Searching LSST-pipeline Stripe 82 photometry for RR Lyrae
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

Abstract away reliance on the "fetch_rrlyrae" dataset #3

Open adrn opened 8 years ago

adrn commented 8 years ago

Right now, your functions are called with arguments like: (i,model,n) where i is the index of the light curve in the fetch_rrlyrae dataset. We should not assume that the data will come from that dataset. Meaning, the functions should instead accept some object or several object that contains all the necessary info about the light curves. For example, we could create an RRLyraeLightCurve class that contains the times, filters, magnitudes, and uncertainties for a single light curve. Then, your analysis functions should accept that object instead of i.