Skip to content

Commit

Permalink
Fix vlos of Vega in test (don't know why it changed in Simbad)
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed Aug 28, 2024
1 parent 49d181e commit 1cf8b25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_orbit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/test_orbits.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand All @@ -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

Expand Down

0 comments on commit 1cf8b25

Please sign in to comment.