Transition metal oxidation state patch#26
Draft
Zhaoli2042 wants to merge 3 commits into
Draft
Conversation
erm42
pushed a commit
that referenced
this pull request
Jun 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Here, we present the initial patch of oxidation states for YARP 3.0.
Changes are made to the find Lewis routines, including guardrails of the routine called adjust_metal. This routine prevents the number of valence electrons available for the transition metal from going negative.
So, metal will only form bonds when it still has available valence electrons.
A minor fix is the completion of the transition metal list in the variable called el_metals in properties.py.
There are some further minor adjustments that tuned the number of iterations in finding Lewis structures from 1,000 to 100, but that needs to be further tested.
Now running oxidation state test on ~181k reactions.