31 lines
1.5 KiB
Diff
31 lines
1.5 KiB
Diff
From 8476d178c6daebbd2e62156f323e8f53e769ee85 Mon Sep 17 00:00:00 2001
|
|
From: Marten van Kerkwijk <mhvk@astro.utoronto.ca>
|
|
Date: Wed, 7 Oct 2015 09:34:29 -0400
|
|
Subject: [PATCH] Use integer X,Y,Z in test to avoid rounding errors on i386.
|
|
Closes #4226.
|
|
|
|
---
|
|
astropy/coordinates/tests/test_sky_coord.py | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/astropy/coordinates/tests/test_sky_coord.py b/astropy/coordinates/tests/test_sky_coord.py
|
|
index 7b22ff6..3dadc00 100644
|
|
--- a/astropy/coordinates/tests/test_sky_coord.py
|
|
+++ b/astropy/coordinates/tests/test_sky_coord.py
|
|
@@ -503,12 +503,12 @@ def test_repr():
|
|
@pytest.mark.skipif('NUMPY_LT_1_7')
|
|
def test_repr_altaz():
|
|
sc2 = SkyCoord(1 * u.deg, 1 * u.deg, frame='icrs', distance=1 * u.kpc)
|
|
- loc = EarthLocation.from_geodetic(-122*u.deg, -47*u.deg)
|
|
+ loc = EarthLocation(-2309223 * u.m, -3695529 * u.m, -4641767 * u.m)
|
|
time = Time('2005-03-21 00:00:00')
|
|
sc4 = sc2.transform_to(AltAz(location=loc, obstime=time))
|
|
assert repr(sc4).startswith("<SkyCoord (AltAz: obstime=2005-03-21 00:00:00.000, "
|
|
- "location=(-2309222.664660742, -3695528.7655007695, "
|
|
- "-4641764.788820372) m, pressure=0.0 hPa, "
|
|
+ "location=(-2309223.0, -3695529.0, "
|
|
+ "-4641767.0) m, pressure=0.0 hPa, "
|
|
"temperature=0.0 deg_C, relative_humidity=0, "
|
|
"obswl=1.0 micron): (az, alt, distance) in "
|
|
"(deg, deg, m)\n")
|