From 1cf8b2547eed07492ba25eb9ae474f0faf37eb6c Mon Sep 17 00:00:00 2001 From: Jo Bovy Date: Tue, 27 Aug 2024 22:21:49 -0400 Subject: [PATCH] Fix vlos of Vega in test (don't know why it changed in Simbad) --- tests/test_orbit.py | 2 +- tests/test_orbits.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_orbit.py b/tests/test_orbit.py index a1ca47339..34ae2b7f2 100644 --- a/tests/test_orbit.py +++ b/tests/test_orbit.py @@ -8543,7 +8543,7 @@ def test_from_name_values(): assert numpy.isclose(o.pmra(), 200.94), "PMRA of Vega does not match SIMBAD value" assert numpy.isclose(o.pmdec(), 286.23), "PMDec of Vega does not match SIMBAD value" assert numpy.isclose( - o.vlos(), -20.60 + o.vlos(), -13.50 ), "radial velocity of Vega does not match SIMBAD value" # test Lacaille 8760 diff --git a/tests/test_orbits.py b/tests/test_orbits.py index bedfa68a8..7822f2ad0 100644 --- a/tests/test_orbits.py +++ b/tests/test_orbits.py @@ -8496,7 +8496,7 @@ def test_from_name_values(): o.pmdec(), [286.23, -1145.862] ), "PMDec of Vega/Lacaille 8760 does not match SIMBAD value" assert numpy.allclose( - o.vlos(), [-20.60, 20.56] + o.vlos(), [-13.50, 20.56] ), "radial velocity of Vega/Lacaille 8760 does not match SIMBAD value" # test Vega and Lacaille 8760, as a list o = Orbit.from_name(["Vega", "Lacaille 8760"]) @@ -8516,7 +8516,7 @@ def test_from_name_values(): o.pmdec(), [286.23, -1145.862] ), "PMDec of Vega/Lacaille 8760 does not match SIMBAD value" assert numpy.allclose( - o.vlos(), [-20.60, 20.56] + o.vlos(), [-13.50, 20.56] ), "radial velocity of Vega/Lacaille 8760 does not match SIMBAD value" return None