Skip to content

Commit

Permalink
Entry column
Browse files Browse the repository at this point in the history
  • Loading branch information
keflavich committed Jan 17, 2025
1 parent 6b57c4a commit 86fed39
Show file tree
Hide file tree
Showing 2 changed files with 1,301 additions and 1,295 deletions.
8 changes: 7 additions & 1 deletion astroquery/linelists/cdms/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def get_species_table(self, *, catfile='partfunc.cat', use_cached=True,
'lg(Q(500))', 'lg(Q(300))', 'lg(Q(225))', 'lg(Q(150))', 'lg(Q(75))',
'lg(Q(37.5))', 'lg(Q(18.75))', 'lg(Q(9.375))', 'lg(Q(5.000))',
'lg(Q(2.725))',
'Ver.', 'Documentation', 'Date of entry', 'Entry in cm–1']]
'Ver.', 'Documentation', 'Date of entry', 'Entry']]

meta = {'lg(Q(1000))': 1000.0,
'lg(Q(500))': 500.0,
Expand Down Expand Up @@ -600,4 +600,10 @@ def retrieve_catfile2(url='https://cdms.astro.uni-koeln.de/classic/predictions/c
# for joining - want same capitalization
tbl.rename_column("Tag", "tag")

# one of these is a unicode dash, the other is a normal dash.... in theory
if 'Entry in cm–1' in tbl.colnames:
tbl.rename_column('Entry in cm–1', 'Entry')
if 'Entry in cm-1' in tbl.colnames:
tbl.rename_column('Entry in cm-1', 'Entry')

return tbl
Loading

0 comments on commit 86fed39

Please sign in to comment.