def test_name_resolving_regression_764(): """Due to a bug, MAST resolved "EPIC250105131" to a different position than "EPIC 250105131". This regression test helps us verify that the bug does not re-appear. Details: https://github.com/KeplerGO/lightkurve/issues/764 """ from astroquery.mast import MastClass c1 = MastClass().resolve_object(objectname="EPIC250105131") c2 = MastClass().resolve_object(objectname="EPIC 250105131") assert c1.separation(c2).to("arcsec").value < 0.1
def _resolve_object(target): """Ask MAST to resolve an object string to a set of coordinates.""" from astroquery.mast import MastClass # Note: `_resolve_object` was renamed `resolve_object` in astroquery 0.3.10 (2019) return MastClass().resolve_object(target)