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)
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)