Skip to content

Commit

Permalink
CircularFingerprinter recyclable
Browse files Browse the repository at this point in the history
Signed-off-by: John May <john.wilkinsonmay@gmail.com>
  • Loading branch information
aclarkxyz authored and johnmay committed Feb 21, 2014
1 parent f5c0620 commit 40c9854
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -129,7 +129,6 @@ public FP(int hashCode,int iteration,int[] atoms)
private int[][] atomGroup;
private CRC32 crc=new CRC32(); // recycled for each CRC calculation
private ArrayList<FP> fplist=new ArrayList<FP>();
private int fingerprint=0; // final 32-bit fingerprint built from constituents

// summary information about the molecule, for quick access
private boolean[] amask; // true for all heavy atoms, i.e. hydrogens and non-elements are excluded
Expand Down Expand Up @@ -176,6 +175,7 @@ public CircularFingerprinter(int classType)
public void calculate(IAtomContainer mol) throws CDKException
{
this.mol=mol;
fplist.clear();
atomClass=classType<=CLASS_ECFP6 ? ATOMCLASS_ECFP : ATOMCLASS_FCFP;

excavateMolecule();
Expand Down

0 comments on commit 40c9854

Please sign in to comment.