Skip to content

Commit

Permalink
pr response
Browse files Browse the repository at this point in the history
  • Loading branch information
laspsandoval committed Nov 20, 2024
1 parent 6c4f648 commit faa70f9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions imap_processing/tests/spice/test_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def test_frame_transform_exceptions():
match="Mismatch in number of position vectors and Ephemeris times provided.",
):
frame_transform(
np.arange(2),
1,
np.arange(9).reshape((3, 3)),
SpiceFrame.ECLIPJ2000,
SpiceFrame.IMAP_HIT,
Expand Down Expand Up @@ -339,7 +339,6 @@ def test_basis_vectors():
)


def test_cartesian_to_spherical(test_data):
def test_cartesian_to_spherical():
"""Tests cartesian_to_spherical function."""

Expand All @@ -365,13 +364,6 @@ def test_cartesian_to_spherical():
np.testing.assert_allclose(r, r_spice, atol=1e-5)
np.testing.assert_allclose(az, az_spice, atol=1e-5)
np.testing.assert_allclose(el, el_spice, atol=1e-5)
# MATLAB code outputs:
np.testing.assert_allclose(
np.unique(np.radians(az_sc)), np.array([1.31300, 2.34891]), atol=1e-05, rtol=0
)
np.testing.assert_allclose(
np.unique(np.radians(el_sc)), np.array([-0.88901, -0.70136]), atol=1e-05, rtol=0
)


def test_spherical_to_cartesian():
Expand Down

0 comments on commit faa70f9

Please sign in to comment.