ChEMBL_Structure_Pipeline icon indicating copy to clipboard operation
ChEMBL_Structure_Pipeline copied to clipboard

Status output being written to stdout instead of stderr

Open gpatbrady opened this issue 3 years ago • 3 comments

Thank you for this pipeline; very helpful! I am writing a python command line wrapper to some of this functionality and it appears to me that some of the "runtime" info that ought to be sent to stderr is being sent to stdout. I'm using the standardize() and get_parent_mol() functions in particular, and my output (to stdout) is being polluted with e.g. stuff like

[21:22:44] Initializing Normalizer [21:22:44] Running Uncharger [21:22:44] Running Uncharger [21:22:44] Running Normalizer [21:22:44] Running Uncharger [21:22:44] Running Uncharger [21:22:44] Running Uncharger

Cheers, pat

gpatbrady avatar Feb 21 '22 02:02 gpatbrady

Or a way to suppress this output altogether would be great.

gpatbrady avatar Feb 21 '22 02:02 gpatbrady

@gpatbrady, those messages are coming from the RDKit core. The incantation to disable the RDKit info log is:

from rdkit import RDLogger
RDLogger.DisableLog("rdApp.info")

greglandrum avatar Feb 21 '22 06:02 greglandrum

Oh sweet; I'll give that a shot! Thanks! Pat

On Mon, Feb 21, 2022, 1:01 AM Greg Landrum @.***> wrote:

@gpatbrady https://github.com/gpatbrady, those messages are coming from the RDKit core. The incantation to disable the RDKit info log is:

from rdkit import RDLogger RDLogger.DisableLog("rdApp.info")

— Reply to this email directly, view it on GitHub https://github.com/chembl/ChEMBL_Structure_Pipeline/issues/36#issuecomment-1046501639, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADVLNUDN4OB5ZAG5BGKCMJDU4HIMBANCNFSM5O5JM5WA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

gpatbrady avatar Feb 21 '22 18:02 gpatbrady