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

The IFingerprinter API can be made backwards compatible with CDK 1.4.… #289

Merged
merged 2 commits into from Apr 2, 2017

Conversation

johnmay
Copy link
Member

@johnmay johnmay commented Mar 29, 2017

…x by re-adding and delegating the old method.

From writing the benchmarks for CDK 1.4 vs 2.0 it's clear to see where APIs have been broken unnecessarily. This patch re-adds the old IFingerprinter method reducing the barrier to code porting.

@egonw egonw requested a review from jonalv April 1, 2017 08:16
@egonw
Copy link
Member

egonw commented Apr 1, 2017

Hi @jonalv, this patch looks good to me, but could you please also glance over it?

@egonw
Copy link
Member

egonw commented Apr 1, 2017

@johnmay, there is a merge conflict that you may wish to resolve?

@johnmay
Copy link
Member Author

johnmay commented Apr 1, 2017

Okay will resolve the conflict

@johnmay
Copy link
Member Author

johnmay commented Apr 1, 2017

Rebased

Copy link
Contributor

@jonalv jonalv left a comment

Choose a reason for hiding this comment

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

Without having the complete code in front of me right now ( and being quite rusty at Java by now :) I think this looks like a good thing. I don't remember whether the Signature fingerprint's implementations of the getBitFingerprint methods throws IllegelstateException or not but even if so I don't know if that is an issue really. Using it as BitSet's is going to be painfully memory requesting. The ECFP on folds the bit variant and but not the count variant. Also an interesting approach. Perhaps if this backwards compatibility thing is a big thing for RCDK (I am just guessing here) it could be interesting to create a folded bit signature fingerprint...

@egonw
Copy link
Member

egonw commented Apr 1, 2017

I'll apply it once the hash test works properly again!

@johnmay
Copy link
Member Author

johnmay commented Apr 2, 2017

hash test?

@egonw egonw merged commit 98725a4 into master Apr 2, 2017
@johnmay johnmay deleted the patch/fingerprint-api branch June 17, 2017 10:16
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.

None yet

3 participants