Skip to content

Fix reading and writing of local_iso_id above 9 - #62

Open
lthiemann wants to merge 1 commit into
hitranonline:masterfrom
lthiemann:pr2-local-iso-id
Open

Fix reading and writing of local_iso_id above 9#62
lthiemann wants to merge 1 commit into
hitranonline:masterfrom
lthiemann:pr2-local-iso-id

Conversation

@lthiemann

Copy link
Copy Markdown

Before:
int('0') -> 0 # should be 10
int('A') -> ValueError
int('B') -> ValueError

The fix correctly maps '0' -> 10, 'A' -> 11 and so on. When the table is written back to file the isotopologue IDs are mapped back as well, so the 160-character format is kept.

Before:
  int('0') -> 0   # should be 10
  int('A') -> ValueError
  int('B') -> ValueError

The fix correctly maps '0' -> 10, 'A' -> 11 and so on. When the table is
written back to file the isotopologue IDs are mapped back as well, so the
160-character format is kept.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant