Пример #1
0
 def test_earth2obj(self):
     objs = self.planets + ['sun']
     for obj in objs:
         for ep in self.ephem:
             a = objPosVel('earth', obj, self.tdb_time, ep)
             assert a.obj == obj
             assert a.origin == 'earth'
             assert a.pos.shape == (3, 10000)
             assert a.vel.shape == (3, 10000)
Пример #2
0
 def test_earth2obj(self):
     objs = self.planets + ['sun']
     for obj in objs:
         for ep in self.ephem:
             a = objPosVel('earth', obj, self.tdb_time, ep)
             assert a.obj == obj
             assert a.origin == 'earth'
             assert a.pos.shape == (3, 10000)
             assert a.vel.shape == (3, 10000)