Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to disable logs? #43

Open
wmhcqw opened this issue Jun 5, 2023 · 1 comment
Open

Is there any way to disable logs? #43

wmhcqw opened this issue Jun 5, 2023 · 1 comment

Comments

@wmhcqw
Copy link

wmhcqw commented Jun 5, 2023

I'm using Jupyter Notebook with Multiprocessing Pool method to extract templates from reactions. But the log like this keep coming out and finally forced my jupyter notebook to be shut down.

Could not validate reaction successfully
ID: 9
retro_canonical: [#7;a:1]:[c:2]-[Cl;H0;D1;+0:3].[ClH;D0;+0:3]>>[#7;a:1]:[c:2]-[Cl;H0;D1;+0:3]

Is there any way to disable logs, something like rdkit's RDLogger.disable("rdApp.*")?

@connorcoley
Copy link
Owner

Not without a slight modification to the source, but it should be fairly straightforward if you're comfortable with Python. This is one of a couple hardcoded print statements:

if rxn.Validate()[1] != 0:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants