Using RDKit 2010.10

Some error messages need to be more helpful.  For e.g. in a 10,000 molecule
smiles file:

[23:07:01] Can't kekulize mol

Traceback (most recent call last):
  File "./x.py", line 314, in <module>
    main()
  File "./x.py", line 303, in main
    mols = doSomething(...)
  File "./x.py", line 185, in doSomething
    mol_noH = Chem.RemoveHs(mol_h)
ValueError: Sanitization error: Can't kekulize mol

Or a "Cannot parse smiles" error give an indication of what is going on --
but I need to know which mol they are failing at...

Something like

[23:07:01] Can't kekulize mol (some id and/or textual smiles)
[23:07:01] Cannot parse smiles string ("Ccc1XXXcCCCC")

Would be more helpful...









Jean-Paul Ebejer
Early Stage Researcher

InhibOx Ltd
Pembroke House
36-37 Pembroke Street
Oxford
OX1 1BP
UK

(+44 / 0) 1865 262 034



This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
Any unauthorised dissemination or copying of this email or its attachments,
and any use or disclosure of any information contained in them, is strictly
prohibited and may be illegal.  If you have received this email in error
please notify the sender and delete all copies from your system.

We and our group companies accept no liability or responsibility for
personal emails or emails unconnected with our business.

Internet communications including emails and access and use of web sites
cannot be guaranteed to be secure or error free as information can be
intercepted, corrupted, lost or arrive late. Furthermore, while we have
taken steps to control the spread of viruses on our systems, we cannot
guarantee that this email and any files transmitted with it are virus free.
No liability is accepted for any errors, omissions, interceptions, corrupted
mail, lost communications or late delivery arising as a result of receiving
this message via the Internet or for any virus that may be contained in it.
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to