from cdips_followup.manage_ephemerides import get_ephemeris_uncertainty
import pandas as pd

df = pd.read_csv('/Users/luke/Dropbox/proj/cdips_followup/data/ephemerides/ephemerides.csv')

for ix, r in df.iterrows():
    eph_unc = get_ephemeris_uncertainty(r['epoch'], r['epoch_unc'],
                                        r['period'], r['period_unc'],
                                        epoch_obs='today')

    print(f"{ix}: TIC {r['ticid']}. {24*eph_unc:.2f} hr. {24*60*eph_unc:.1f} min.")
