Skip to content

Commit

Permalink
Revert "Update string handling in table names"
Browse files Browse the repository at this point in the history
This reverts commit 065973b.
  • Loading branch information
djperrefort committed Aug 30, 2023
1 parent 065973b commit dde3ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sndata/utils/data_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def parse_vizier_table_descriptions(readme_path: Union[Path, str]):
# Iterate until end of table marker
while not line.startswith('---'):
line_list = line.split()
table_num = line_list[0].removeprefix('table').removesuffix('.dat')
table_num = line_list[0][len('table'):].rstrip('.dat')
if table_num.isdigit():
table_num = int(table_num)

Expand Down

0 comments on commit dde3ac1

Please sign in to comment.