Exemplo n.º 1
0
 def test_from_lightkurve(self):
     from Lightkurve import LightCurve
     time, flux, flux_err = range(3), np.ones(3), np.zeros(3)
     lk = LightCurve(time, flux, flux_err)
     sr = Lightcurve.from_lightkurve(lk)
     assert_allclose(sr.time, lc.time)
     assert_allclose(sr.counts, lc.flux)
     assert_allclose(sr.counts_err, lc.flux_err)