Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: fix jplspec build lookup #2945

Merged
merged 2 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading