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

add flag to not turn bonds to metals into zobs #77

Merged
merged 4 commits into from
Aug 19, 2020

Conversation

ZontaNicola
Copy link
Collaborator

added flag to not turn single and double bonds to metals into zobs.

added automated test to show the length of the bond is around the same as a single bond (zobs to metals usually are stretched out)

@greglandrum
Copy link
Collaborator

The API looks good to me and I've confirmed on the RDKit side that this fixes both the issues that we had previously observed.

// Load a molecule with a single bond to a metal. Make sure that disabling the automatic conversion
// to zob behaves as expected

const std::string testfile = (test_samples_path / "metalZobs.mae").string();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that the tests are failing because this is metalZobs.mae and the test file name is metalZob.mae (extra s here).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! I fixed that and made the test more precise. Seems like the tests are passing now

@ZontaNicola ZontaNicola requested a review from d-b-w August 19, 2020 10:25
@d-b-w d-b-w merged commit f1c0d93 into schrodinger:master Aug 19, 2020
@d-b-w
Copy link
Collaborator

d-b-w commented Aug 19, 2020

I've merged this PR

d-b-w added a commit that referenced this pull request Oct 13, 2020
For use in Schrödinger release 2020-4.

Set version in CMakelists to 1.4.2. There are no backwards incompatible API changes in this release. There is a class that is now exported, and there are a couple of methods that are now const.

Features include:
* add flag to not turn bonds to metals into zobs Pull #77
* some minor performance improvements Pull #72
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.

3 participants