aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-01-23 16:12:03 +0800
committerAaron LI <aly@aaronly.me>2018-01-26 11:29:54 +0800
commitc79a824b39b3125029e342b7f67928cd7fd1040a (patch)
tree415356f09bd605b68859e428b4c58b05f58e566b
parent6bb6f96f06ac58e49383eff4c96460ad6452f471 (diff)
downloadatoolbox-c79a824b39b3125029e342b7f67928cd7fd1040a.tar.bz2
astro/query_ned.py: "Object Name" doesn't need decode
Maybe `astroquery' updated with this element.
-rwxr-xr-xastro/query_ned.py2
1 files changed, 1 insertions, 1 deletions
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]