Skip to content

Commit

Permalink
Fix defn and test of test_sphlat(). (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
fyellin committed Aug 3, 2023
1 parent c01d8ce commit a0a7b6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spiceypy/spiceypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12369,7 +12369,7 @@ def sphlat(r: float, colat: float, lons: float) -> Tuple[float, float, float]:
radius = ctypes.c_double()
lon = ctypes.c_double()
lat = ctypes.c_double()
libspice.sphcyl_c(
libspice.sphlat_c(
r, colat, lons, ctypes.byref(radius), ctypes.byref(lon), ctypes.byref(lat)
)
return radius.value, lon.value, lat.value
Expand Down
2 changes: 1 addition & 1 deletion src/spiceypy/tests/test_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -7369,7 +7369,7 @@ def test_sphcyl():

def test_sphlat():
result = np.array(spice.sphlat(1.0, spice.pi(), spice.halfpi()))
expected = np.array([0.0, spice.halfpi(), -1.0])
expected = np.array([1.0, spice.halfpi(), -spice.halfpi()])
npt.assert_array_almost_equal(result, expected)


Expand Down

0 comments on commit a0a7b6f

Please sign in to comment.