-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix issue #312 #313
Fix issue #312 #313
Conversation
Bah, it looks like all of the AMBER related tests on Linux have inexplicably started failing. It appears that the
|
Nope, it's the exact same version of
Everything is fine locally, and for the builds the other day. If a single Python variant failed then I'd think that it was a freak occurrence, but all of them did 🤷♂️ |
Looks like the issue is that |
Yes, that did the trick. Really confused why this just started happening. Would have been nice if it happened before the release, since it's possible that people creating a fresh environment will experience the problem. |
This PR fixes #312 by skipping RMSD alignment when merging monatomic ions with other molecules, e.g. water when creating an alchemical ion. When a single item mapping is detected and one of the molecules has a single atom, then we skip the alignment and simply replace the coordinates of the mapped atom with those of the reference. A similar approach could be applied in the mapping/merging code with Sire.
(Note that there is some code duplication below since we still have two scoring functions, one for RDKit mappings, and one for Sire.)
devel
into this branch before issuing this pull request (e.g. by runninggit pull origin devel
): [y]Suggested reviewers:
@chryswoods