Conversation
d-b-w
left a comment
There was a problem hiding this comment.
Please add a test for this.
|
I think having this option makes sense, but it does make the name of the option quite misleading - functionally it would no longer be I'm not sure how stable you need to keep the API, particularly with this new function, but ideally that option name could be changed to |
add test, rename option
I think RDKit is the only place where this is used, if you're ok with updating the name, I'd just do that |
No problem on the RDKit side. We haven't done a release that includes that functionality yet anyway (it's still on master). |
|
I see that you added a test, but I don't understand how it validates the new feature, since Since this is only about terminal bonds, we don't expect this to help with https://jira.schrodinger.com/browse/CRDGEN-264, right? |
so now the treatment of non-terminal metals is controlled by the flag, while for terminal metals it's "always on", so the test for terminal metals doesn't need the flag to be set. |
|
This change will require a version bump, because it changes the API of the library |
For use in Schrödinger release 2021-1. Set version in CMakelists to 2.0.0. There was a change in an option name (TreatAllBondsToMetalAsZOBs became TreatNonterminalBondsToMetalAsZOBs #80). Otherwise, this is mostly a bugfix release.
Always trust bond order for terminal metals (in other words never convert bonds to terminal atoms to zero order bonds), this means that terminal atoms are treated as part of the same molecule for depiction purposes, so the bond is always a standard length.