Skip to content

Commit

Permalink
Merge pull request #9 from LLNL/fix-test
Browse files Browse the repository at this point in the history
fixed depreciated function names
  • Loading branch information
SuperdoerTrav authored Jul 18, 2024
2 parents 9c617ff + 7d93d2b commit 02727ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_vallado():
ddpsi = -0.052195/206265 # arcsec->radians
ddeps = -0.003875/206265 # arcsec->radians

rot = ssapy.utils.teme2gcrf(t)
rot = ssapy.utils.teme_to_gcrf(t)

# 10 cm precision
np.testing.assert_allclose(np.dot(rot, rteme), rgcrf, rtol=0, atol=1e-4)
Expand All @@ -45,7 +45,7 @@ def test_vallado():
np.testing.assert_allclose(np.dot(rot.T, rgcrf), rteme, rtol=0, atol=1e-4)
np.testing.assert_allclose(np.dot(rot.T, vgcrf), vteme, rtol=0, atol=1e-7)

rotT = ssapy.utils.gcrf2teme(t)
rotT = ssapy.utils.gcrf_to_teme(t)
np.testing.assert_allclose(np.dot(rotT, rgcrf), rteme, rtol=0, atol=1e-4)
np.testing.assert_allclose(np.dot(rotT, vgcrf), vteme, rtol=0, atol=1e-7)

Expand Down Expand Up @@ -73,7 +73,7 @@ def arrtov3(arr):
for _ in range(100):
rteme = np.random.uniform(low=-1000, high=1000, size=(10, 3))
t = Time(np.random.uniform(low=0, high=1e8), format='gps')
rot = ssapy.utils.teme2gcrf(t)
rot = ssapy.utils.teme_to_gcrf(t)
rgcrf = np.dot(rot, rteme.T).T

oreDate = AbsoluteDate(t.isot, TimeScalesFactory.getUTC())
Expand Down

0 comments on commit 02727ca

Please sign in to comment.