Skip to content

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
sgosline committed Jun 20, 2024
1 parent 42a48a4 commit 128e1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/utils/build_drug_desc.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def smiles_to_fingerprint(smiles):
mol = Chem.MolFromSmiles(s)
try:
fingerprint = AllChem.GetMorganFingerprintAsBitVect(mol, radius=2, nBits=1024) # update these parameters
except Error:
except OSError:
print('Cannot compute fingerprint for '+s)
continue
fingerprint_array = np.array(fingerprint)
Expand Down

0 comments on commit 128e1c2

Please sign in to comment.