Gaetano Calabro
2016-02-17 23:54:37 UTC
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
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