Skip to content

Commit 939d82e

Browse files
committed
BUG: fix how build_lookup works with Tables
1 parent b39ef34 commit 939d82e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

astroquery/jplspec/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ def get_species_table(self, *, catfile='catdir.cat'):
238238
def build_lookup():
239239

240240
result = JPLSpec.get_species_table()
241-
keys = list(result[1][:]) # convert NAME column to list
242-
values = list(result[0][:]) # convert TAG column to list
243-
dictionary = dict(zip(keys, values)) # make k,v dictionary
241+
keys = list(result['NAME'])
242+
values = list(result['TAG'])
243+
dictionary = dict(zip(keys, values))
244244
lookuptable = lookup_table.Lookuptable(dictionary) # apply the class above
245245

246246
return lookuptable

0 commit comments

Comments
 (0)