-
Notifications
You must be signed in to change notification settings - Fork 845
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
MolChemicalFeature.GetPos() returns value for molecule's default conformer #2530
Comments
Hi @greglandrum , |
Hi @MaxGreil. Thanks for volunteering. |
Hi @greglandrum, |
Great! Then the first step is to clone the RDKit github repo and do a build from source. There are instructions for this (hopefully useable instructions) in the RDKit docs. Once that's all working and you can use the build that you've done inside of a local python environment you're ready to make the required changes. |
Nadine did some documentation on how we use git/github here: https://github.com/rdkit/UGM_2016/blob/master/Presentations/Landrum_Schneider_GitHub_Git_and_RDKit.pdf |
I will try to provide some pointers on specific code changes tomorrow morning. |
@greglandrum Thank you for your advice. |
@MaxGreil : hmm, apologies that I seem to have lost track of this. |
Hi @greglandrum, |
The class The Python wrapper for MolChemicalFeature only has one getPos() method: the fix for this issue is to add a second method to the python wrapper (in the Wrap/MolChemicalFeature.cpp file) that takes no arguments and that points to the overload Once you've got that done, it would be good to add a test to Code/GraphMol/MolChemicalFeatures/Wrap/testChemicalFeatures.py that tests the new feature and shows that it works. |
Description:
Reported on the mailing list here: https://www.mail-archive.com/rdkit-discuss@lists.sourceforge.net/msg09001.html
The python wrapper needs an overload of
MolChemicalFeature.GetPos()
that takes no arguments (instead of the current code, which defaults the confId to -1).The text was updated successfully, but these errors were encountered: