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

Stderr Stacktrace on stdinchikey sometimes #6

Open
tylerperyea opened this issue Mar 26, 2021 · 1 comment
Open

Stderr Stacktrace on stdinchikey sometimes #6

tylerperyea opened this issue Mar 26, 2021 · 1 comment
Assignees

Comments

@tylerperyea
Copy link
Contributor

org.openscience.cdk.exception.CDKException: Cannot assign Kekulé structure, non-sigma bond order has already been assigned?
at org.openscience.cdk.aromaticity.Kekulization.kekulize(Kekulization.java:113)
at gov.nih.ncats.molwitch.cdk.CdkChemicalImpl.lambda$kekulize$15(CdkChemicalImpl.java:979)
at gov.nih.ncats.molwitch.cdk.CdkChemicalImpl.doWithQueryFixes(CdkChemicalImpl.java:772)
at gov.nih.ncats.molwitch.cdk.CdkChemicalImpl.kekulize(CdkChemicalImpl.java:977)
at gov.nih.ncats.molwitch.Chemical.kekulize(Chemical.java:540)
at gov.nih.ncats.molwitch.cdk.CdkChemicalInchiImplFactory.asStdInchi(CdkChemicalInchiImplFactory.java:94)
at gov.nih.ncats.molwitch.inchi.Inchi.asStdInchi(Inchi.java:48)
at gov.nih.ncats.molwitch.Chemical.toInchi(Chemical.java:579)
at gov.nih.ncats.molvec.internal.algo.experimental.InChIKeySetScorer.score(InChIKeySetScorer.java:98)
at gov.nih.ncats.molvec.internal.algo.experimental.ModifiedMolvecPipel

I don't know that it should actually throw the exception, but it should probably have a global flag for whether it swallows, throws, or prints. I don't think printing is the right default.

@dkatzel-ncats
Copy link
Contributor

Right now it catches and swallows it put prints the stacktrace to stderr. we can use a logger and only print a certain log level?

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