From c79a824b39b3125029e342b7f67928cd7fd1040a Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 23 Jan 2018 16:12:03 +0800 Subject: astro/query_ned.py: "Object Name" doesn't need decode Maybe `astroquery' updated with this element. --- astro/query_ned.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astro/query_ned.py b/astro/query_ned.py index 6bfb1ff..30791fd 100755 --- a/astro/query_ned.py +++ b/astro/query_ned.py @@ -49,7 +49,7 @@ def query_name(name, verbose=False): """ try: q = Ned.query_object(name) - objname = q["Object Name"][0].decode("utf-8") + objname = q["Object Name"][0] objtype = q["Type"][0].decode("utf-8") ra = q["RA(deg)"][0] dec = q["DEC(deg)"][0] -- cgit v1.2.2