From e0a9134149d5c2d578549d2459c34ede39e32c1e Mon Sep 17 00:00:00 2001 From: Jo Bovy Date: Tue, 21 Jan 2025 12:24:39 -0500 Subject: [PATCH] Exclude code to deal with old astroquery from code coverage --- galpy/orbit/Orbits.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/galpy/orbit/Orbits.py b/galpy/orbit/Orbits.py index 52a9fe02a..c8936d204 100644 --- a/galpy/orbit/Orbits.py +++ b/galpy/orbit/Orbits.py @@ -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: @@ -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(