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

Species parse oxi state from symbol str #2998

Merged
merged 5 commits into from
May 18, 2023

Conversation

janosh
Copy link
Member

@janosh janosh commented May 18, 2023

Closes #2997.

Species("O-").oxi_state
>>> -1

Species("Fe2+").oxi_state
>>> 2

@janosh janosh added the enhancement A new feature or improvement to an existing one label May 18, 2023
@janosh janosh enabled auto-merge (squash) May 18, 2023 00:26
@janosh janosh requested a review from shyuep May 18, 2023 00:26
and fix symbol type hint to account for str | Element  | Species
@janosh janosh merged commit ad8e6e7 into master May 18, 2023
@janosh janosh deleted the species-parse-oxi-state-from-symbol-str branch May 18, 2023 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature or improvement to an existing one
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Species should parse oxi state from strings like "O2-"
1 participant