Exemplo n.º 1
0
 def testNow(self):
     now = coordinates.julian_date()
     self.failUnless(now > 2454574)
Exemplo n.º 2
0
 def testknownValues(self):
     for date, jd in self.knownValues:
         calc_jd = coordinates.julian_date(date)
         self.assertAlmostEqual(calc_jd, jd)
         calc_mjd = coordinates.julian_date(date, modified=True)
         self.assertAlmostEqual(calc_mjd, jd - 2400000.5)