-
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
Fix AUTOCORR2D descriptors #3512
Conversation
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.
LGTM, but @bp-kelley should probably also confirm
rdkit/Chem/UnitTestDescriptors.py
Outdated
def testVectorDescriptorsInDescList(self): | ||
# First try only bcuts should exist | ||
descriptors = set([n for n,_ in Descriptors.descList]) | ||
names = set(["BCUT2D_%s"%i for i in ('MWHI',"MWLOW","CHGHI","CHGLO", |
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.
This is code breaking it looks like
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.
As it changes the function names in the descriptor list.
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.
Ok, reformatting it.
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.
Thanks, I probably shouldn't have copied the AUTOCORR format, but that's what I did :)
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.
@ricrogz - sorry I misread the change! It was fine.
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.
No problem! I wasn't quite sure whether you complained about the formatting, which was ugly, or whether the names of the descriptors were wrong... which was part of the problem here.
* fix autocorr descriptors * reformat names
* fix autocorr descriptors * reformat names
Yesterday, looking at #3511, I became curious about the AUTOCORR2D descriptors: I noticed that while BCUT2D ones left over a cache (with a non-Python type), there wasn't one for the AUTOCORR2D descriptors.
Looking a bit further, I noticed these had to be explicitly set up... using a function that was missing an underscore (
setupDescriptors()
). From there, it was an interesting trip to find that the setup mechanism wasn't working... and neither was the test that was supposed to catch it, since it was over indented so that it was an inner function of the previous test, and therefore, never ran.This is my attempt to fix it