Commit b4404f1a authored by nsoler's avatar nsoler
Browse files

fixed data calculator

parent 2dc18b84
Pipeline #2364 failed with stages
in 1 minute and 57 seconds
......@@ -44,7 +44,12 @@ class DataCalculator():
v = str(inchikey_inchi[ik])
# ik)
mol = Chem.rdinchi.InchiToMol(v)[0]
try: # NS: some inchis make RDkit bug
mol = Chem.rdinchi.InchiToMol(v)[0]
except Exception as e:
DataCalculator.__log.error("Problem with molecule "+ik+", skipped.")
info = {}
# print mol
fp = Chem.GetMorganFingerprintAsBitVect(
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment