Skip to content

Commit

Permalink
Updated for the new FP api by Jonathan
Browse files Browse the repository at this point in the history
Change-Id: I11abe3b02a2df286bb012c21bb2f167be6e281b5
  • Loading branch information
egonw committed Jul 28, 2012
1 parent 2abf5a1 commit 8939f04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -224,8 +224,8 @@ public void testMultithreadedUsage() throws Exception {


IFingerprinter fp = new PubchemFingerprinter();
BitSet bs1 = fp.getFingerprint(mol1);
BitSet bs2 = fp.getFingerprint(mol2);
BitSet bs1 = fp.getBitFingerprint(mol1).asBitSet();
BitSet bs2 = fp.getBitFingerprint(mol2).asBitSet();

class FpRunner implements Callable<BitSet> {
IAtomContainer mol;
Expand All @@ -236,7 +236,7 @@ public BitSet call() throws Exception {
BitSet fp = null;
IFingerprinter fpr = new PubchemFingerprinter();
try {
fp = fpr.getFingerprint(mol);
fp = fpr.getBitFingerprint(mol).asBitSet();
} catch (CDKException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
Expand Down
Expand Up @@ -64,6 +64,6 @@ public void testUnsupportedMethod() throws Exception {
SignatureFingerprinter fingerprinter = new SignatureFingerprinter(0);
SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
IAtomContainer mol = sp.parseSmiles("O(NC)CC");
fingerprinter.getFingerprint(mol);
fingerprinter.getBitFingerprint(mol);
}
}

0 comments on commit 8939f04

Please sign in to comment.