Skip to content

Commit

Permalink
Merge pull request astropy#2945 from bsipocz/BUG_jplspec_build_lookup
Browse files Browse the repository at this point in the history
BUG: fix jplspec build lookup
  • Loading branch information
bsipocz authored Feb 5, 2024
2 parents 4dd1fc0 + c4cd1df commit ab7fdaa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ jplsbdb
- Fix a bug for jplsdbd query when the returned physical quantity contains
a unit with exponential. [#2377]

jplspec
^^^^^^^

- Fix a bug in lookup-table generation when using ``parse_name_locally``
option. [#2945]

linelists.cdms
^^^^^^^^^^^^^^

Expand Down
6 changes: 3 additions & 3 deletions astroquery/jplspec/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ def get_species_table(self, *, catfile='catdir.cat'):
def build_lookup():

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

return lookuptable

0 comments on commit ab7fdaa

Please sign in to comment.