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

Patch/fingerprint tidy 1 #94

Closed
wants to merge 11 commits into from
Closed

Conversation

johnmay
Copy link
Member

@johnmay johnmay commented Dec 6, 2014

Some cleanup to fingerprint code.

@egonw
Copy link
Member

egonw commented Dec 7, 2014

@jonalv, can you please also have a look at it?

@johnmay
Copy link
Member Author

johnmay commented Dec 7, 2014

Just spotted there is another method already for getting the count fp from features. Will delegate from the util to that..

/**
* Specific constructor: initializes with descriptor class type, one of ECFP_{p} or FCFP_{p}, where ECFP is
* for the extended-connectivity fingerprints, FCFP is for the functional class version, and {p} is the
* path diameter, and may be 0, 2, 4 or 6.
Copy link
Contributor

Choose a reason for hiding this comment

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

"may be 0, 2, 4 or 6.", maybe throw an IllegalArgumentException if not? (ref: http://stackoverflow.com/questions/6086334/is-it-good-practice-to-make-the-constructor-throw-an-exception)

@johnmay
Copy link
Member Author

johnmay commented Dec 8, 2014

Done.

@johnmay
Copy link
Member Author

johnmay commented Dec 9, 2014

@jonalv any further comments? Would like to push this out for a 1.5.9 release.

@jonalv
Copy link
Contributor

jonalv commented Dec 9, 2014

I am good. Will admit that I haven't fully grokked all the stuff in the tools and Lingo classes though.

@egonw
Copy link
Member

egonw commented Dec 11, 2014

Applying them...

@egonw
Copy link
Member

egonw commented Dec 11, 2014

Applied and pushed.

@egonw egonw closed this Dec 11, 2014
@egonw
Copy link
Member

egonw commented Dec 14, 2014

Are these two regressions on Jenkins caused by this patch?

org.openscience.cdk.fingerprint.LingoFingerprinterTest.testFingerprint
org.openscience.cdk.fingerprint.LingoFingerprinterTest.testGetCountFingerprint

@johnmay
Copy link
Member Author

johnmay commented Dec 14, 2014

Yep will patch.

@johnmay johnmay deleted the patch/fingerprint-tidy-1 branch December 28, 2014 11:17
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