Skip to content

Commit

Permalink
Fix typo in test_oscelt and test_oscltx
Browse files Browse the repository at this point in the history
* Fix test_oscelt and test_oscltx to use correct values for mass of earth.
  • Loading branch information
fyellin committed Jul 25, 2023
1 parent 1f5297b commit c01d8ce
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/spiceypy/tests/test_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6239,17 +6239,17 @@ def test_oscelt():
spice.furnsh(CoreKernels.testMetaKernel)
et = spice.str2et("Dec 25, 2007")
state, ltime = spice.spkezr("Moon", et, "J2000", "LT+S", "EARTH")
mass_earth = spice.bodvrd("EARTH", "GM", 1)
_len, mass_earth = spice.bodvrd("EARTH", "GM", 1)
elts = spice.oscelt(state, et, mass_earth[0])
expected = [
3.65914105273643566761e05,
4.23931145731340453494e05,
4.87177926278510253777e-01,
6.18584206992959551030e00,
1.88544634402406319218e00,
1.86769787246217056236e04,
2.51812865183709204197e08,
1.00000000000000000000e00,
3.60975119168868346605e+05,
7.81035176779166367966e-02,
4.87177926278510309288e-01,
6.18584206992959551030e+00,
1.28678805411666807856e+00,
5.53312778515375192079e-01,
2.51812865183709204197e+08,
3.98600435436095925979e+05
]
npt.assert_array_almost_equal(elts, expected, decimal=4)

Expand All @@ -6265,20 +6265,20 @@ def test_oscltx():
spice.furnsh(CoreKernels.testMetaKernel)
et = spice.str2et("Dec 25, 2007")
state, ltime = spice.spkezr("Moon", et, "J2000", "LT+S", "EARTH")
mass_earth = spice.bodvrd("EARTH", "GM", 1)
_len, mass_earth = spice.bodvrd("EARTH", "GM", 1)
elts = spice.oscltx(state, et, mass_earth[0])
expected = [
3.65914105273643566761e05,
4.23931145731340453494e05,
4.87177926278510253777e-01,
6.18584206992959551030e00,
1.88544634402406319218e00,
1.86769787246217056236e04,
2.51812865183709204197e08,
1.00000000000000000000e00,
4.40283687897870881778e-02,
-8.63147169311087925081e-01,
0.00000000000000000000e00,
3.60975119168868346605e+05,
7.81035176779166367966e-02,
4.87177926278510309288e-01,
6.18584206992959551030e+00,
1.28678805411666807856e+00,
5.53312778515375192079e-01,
2.51812865183709204197e+08,
3.98600435436095925979e+05,
6.42686658697182999767e-01,
3.91557106563244480640e+05,
2.43839270213373843580e+06
]
npt.assert_array_almost_equal(elts, expected, decimal=4)

Expand Down

0 comments on commit c01d8ce

Please sign in to comment.