[Rdkit-discuss] Capturing warnings
Open-Source Cheminformatics and Machine Learning
Brought to you by:
glandrum
From: Gerebtzoff, G. <gre...@ro...> - 2012-10-29 09:06:16
|
Hi List, Is there a clean way to capture the warnings generated by RDKit, for instance "Warning: ring stereochemistry detected. The output SMILES is not canonical"? I tried several approaches (the warnings python module, by redirecting the stderr with os.devnull, or try/except) but none of them allowed me to capture these warnings. Many thanks for your advices! Best, Grégori |