Skip to content

Commit

Permalink
Merge 9f41a7c into 0b755fa
Browse files Browse the repository at this point in the history
  • Loading branch information
eteq committed Nov 24, 2015
2 parents 0b755fa + 9f41a7c commit 122d200
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions astropy/coordinates/tests/test_name_resolve.py
Expand Up @@ -123,8 +123,11 @@ def test_names():
icrs = SkyCoord(ra=float(ra)*u.degree, dec=float(dec)*u.degree)

icrs_true = SkyCoord(ra="11h 22m 18.014s", dec="59d 04m 27.27s")
np.testing.assert_almost_equal(icrs.ra.degree, icrs_true.ra.degree, 3)
np.testing.assert_almost_equal(icrs.dec.degree, icrs_true.dec.degree, 3)

# use precsision of only 1 decimal here and below because the result can
# change due to Sesame server-side changes.
np.testing.assert_almost_equal(icrs.ra.degree, icrs_true.ra.degree, 1)
np.testing.assert_almost_equal(icrs.dec.degree, icrs_true.dec.degree, 1)

try:
icrs = get_icrs_coordinates("castor")
Expand All @@ -133,8 +136,8 @@ def test_names():
icrs = SkyCoord(ra=float(ra)*u.degree, dec=float(dec)*u.degree)

icrs_true = SkyCoord(ra="07h 34m 35.87s", dec="+31d 53m 17.8s")
np.testing.assert_almost_equal(icrs.ra.degree, icrs_true.ra.degree, 3)
np.testing.assert_almost_equal(icrs.dec.degree, icrs_true.dec.degree, 3)
np.testing.assert_almost_equal(icrs.ra.degree, icrs_true.ra.degree, 1)
np.testing.assert_almost_equal(icrs.dec.degree, icrs_true.dec.degree, 1)


@remote_data
Expand Down

0 comments on commit 122d200

Please sign in to comment.