Skip to content

Commit

Permalink
Exclude code to deal with old astroquery from code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed Jan 21, 2025
1 parent 05b0d0e commit e0a9134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions galpy/orbit/Orbits.py
Original file line number Diff line number Diff line change
Expand Up @@ -7468,7 +7468,7 @@ def _from_name_oneobject(name, obs):
"pmdec",
"rvz_radvel" if _AQ_GT_47 else "rv_value",
)
if not _AQ_GT_47:
if not _AQ_GT_47: # pragma: no cover
simbad.add_votable_fields("plx", "distance")
# query SIMBAD for the named object
try:
Expand Down Expand Up @@ -7506,7 +7506,7 @@ def _from_name_oneobject(name, obs):
dist = simbad_table["mesdistance.dist"][0]
else:
dist = 1.0 / simbad_table["plx_value"][0]
else:
else: # pragma: no cover
# check that the necessary coordinates have been found
missing = simbad_table.mask
if any(missing["RA_d", "DEC_d", "PMRA", "PMDEC", "RV_VALUE"][0]) or all(
Expand Down

0 comments on commit e0a9134

Please sign in to comment.