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

KeyError when last element has no number #2

Closed
LauKr opened this issue Jul 28, 2020 · 0 comments · Fixed by #3
Closed

KeyError when last element has no number #2

LauKr opened this issue Jul 28, 2020 · 0 comments · Fixed by #3
Assignees
Labels
bug Something isn't working

Comments

@LauKr
Copy link
Owner

LauKr commented Jul 28, 2020

When using a compound where the last element has no quantity, a KeyError '' emerges.

When using e.g. La2O the error occures, La2O1 works fine. On the other hand, O1La also doesn't work, as KeyError 'L' emerges.
Thus, the last letter seems to be stripped.
Similar with HSe, where no error is raised, but the result fits only to HS instead.

@LauKr LauKr added the bug Something isn't working label Jul 28, 2020
@LauKr LauKr self-assigned this Jul 28, 2020
LauKr added a commit that referenced this issue Jul 28, 2020
by increasing index by 1
@LauKr LauKr closed this as completed in #3 Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant