Skip to content

Commit cf4a857

Browse files
committed
Fix Ceres remote test.
V and surfbright tend to vary a lot more than the other quantities. Giving them a generous test.
1 parent 8acdc09 commit cf4a857

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

astroquery/jplhorizons/tests/test_jplhorizons_remote.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,18 @@ def test_ephemerides_query(self):
3131

3232
assert_quantity_allclose(
3333
[2451544.5,
34-
188.70280, 9.09829, 34.40955, -2.68359,
35-
8.469, 7.009, 96.17083,
36-
161.3828, 10.4528, 2.551099014238, 0.1744491,
37-
2.26315116146176, -21.9390511, 18.822054,
38-
95.3996, 22.5698, 292.551, 296.850,
39-
184.3426220, 11.7996521, 289.864329, 71.545655,
40-
0, 0],
34+
188.7028, 9.09829, 34.40955, -2.68359,
35+
96.17083,
36+
161.3828, 10.4528, 2.551099027865, 0.1744491,
37+
2.26315121010004, -21.9390512, 18.82205467,
38+
95.3996, 22.5698, 292.551,
39+
296.85,
40+
184.3426241, 11.7996517, 289.864335,
41+
71.545654,
42+
0.0, 0.0],
4143
[res['datetime_jd'],
4244
res['RA'], res['DEC'], res['RA_rate'], res['DEC_rate'],
43-
res['V'], res['surfbright'], res['illumination'],
45+
res['illumination'],
4446
res['EclLon'], res['EclLat'], res['r'], res['r_rate'],
4547
res['delta'], res['delta_rate'], res['lighttime'],
4648
res['elong'], res['alpha'], res['sunTargetPA'],
@@ -49,6 +51,10 @@ def test_ephemerides_query(self):
4951
res['GlxLat'],
5052
res['RA_3sigma'], res['DEC_3sigma']], rtol=1e-3)
5153

54+
# V and surfbright tend to vary a lot more than the others. Give them a
55+
# more generous test:
56+
assert_quantity_allclose([8.239, 6.779], [res['V'], res['surfbright']], rtol=0.1)
57+
5258
def test_ephemerides_query_two(self):
5359
# check comet ephemerides using options
5460
obj = jplhorizons.Horizons(id='Halley', id_type='comet_name',

0 commit comments

Comments
 (0)