-
Notifications
You must be signed in to change notification settings - Fork 17
Fix issue #392 #393
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 #392 #393
Conversation
Also note that I chose not to use direct conversion, since it appears to be less reliable if the molecule wasn't loaded from SDF, PDB, or Mol2, i.e. whatever RDKit does to fix things when going from those formats seems to more reliably recover the formal charge than converting directly when that info isn't present, e.g. if you went from a molecule loaded from AMBER files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good 👍
This PR fixes #392 by improving the robustness of the internal formal charge calculation within the
Parameters
sub-module. Now we preferentially use the format the the original molecule was loaded from, either PDB or SDF, or try both if none are present in the file formats list. This means that we can still get a result if the PDB conversion doesn't work, etc.Note that I haven't been provided with the problem file in this case, so haven't added an additional test. All existing tests pass.
devel
into this branch before issuing this pull request (e.g. by runninggit pull origin devel
): [y]