[Rdkit-discuss] Suppress stdout and stderr in rdkit
Open-Source Cheminformatics and Machine Learning
Brought to you by:
glandrum
|
From: Gaetano C. <gca...@uc...> - 2016-02-17 23:54:50
|
Hi there, I wonder if there is an easy way to suppress the standard output and standard error from RDkit. For example: from rdkit import Chem smart = '[#6]1(:[#6]:[#6]:[#6]2:[#6](:[#6]:1):[#6]:[#6]:[#6]:[#6]:2)-[#8,#6]' mol = Chem.MolFromSmarts(smart) Chem.SanitizeMol(mol) This will produce the warning message: [15:52:25] Explicit valence for atom # 3 C, 5, is greater than permitted I would like to suppress this message. Is there any way to do it? Thanks, Gaetano |