Skip to content

Commit

Permalink
recode unicode raised minus (character 96) as simple dash
Browse files Browse the repository at this point in the history
  • Loading branch information
keflavich committed Jan 17, 2025
1 parent aa8ebdc commit 578760a
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 76 deletions.
2 changes: 2 additions & 0 deletions astroquery/linelists/cdms/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,8 @@ def retrieve_catfile2(url='https://cdms.astro.uni-koeln.de/classic/predictions/c
# delete a junk column (wastes space)
del tbl['Catalog']

Check warning on line 579 in astroquery/linelists/cdms/core.py

View check run for this annotation

Codecov / codecov/patch

astroquery/linelists/cdms/core.py#L579

Added line #L579 was not covered by tests

tbl['Name'] = [x.replace('\x96', '-') for x in tbl['Name']]

Check warning on line 581 in astroquery/linelists/cdms/core.py

View check run for this annotation

Codecov / codecov/patch

astroquery/linelists/cdms/core.py#L581

Added line #L581 was not covered by tests

# for joining - want same capitalization
tbl.rename_column("Tag", "tag")

Check warning on line 584 in astroquery/linelists/cdms/core.py

View check run for this annotation

Codecov / codecov/patch

astroquery/linelists/cdms/core.py#L584

Added line #L584 was not covered by tests
# the '-' is some unicode character that windoze can't handle
Expand Down
Loading

0 comments on commit 578760a

Please sign in to comment.