On 1/21/19 1:42 PM, Jean-Marc Nuzillard wrote:

>             sys.stderr.write("Bad: %s\n" % (mol.GetProp("_Name"),))

> I know which bond has a problem but I still do not know in which molecule.

Are you sure they all have _Name's? I'd just print the count outside of
the try/catch block and ignore ones not followed by the warning message.
(And run with #!/usr/bin/python -u and/or flush sys.stdout/stderr on
every iteration for good measure.)

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to