Commit b73057aa authored by nsoler's avatar nsoler
Browse files

Merge branch 'master' of gitlabsbnb.irbbarcelona.org:packages/chemical_checker

parents c1c42dc5 b4404f1a
Pipeline #2365 failed with stages
in 1 minute and 53 seconds
......@@ -44,7 +44,12 @@ class DataCalculator():
continue
v = str(inchikey_inchi[ik])
# DataCalculator.__log.info( 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.")
DataCalculator.__log.error(e)
continue
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