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

Uncaught error for qmol get_svg() #451

Open
atfera opened this issue Mar 14, 2024 · 0 comments
Open

Uncaught error for qmol get_svg() #451

atfera opened this issue Mar 14, 2024 · 0 comments

Comments

@atfera
Copy link

atfera commented Mar 14, 2024

Describe the bug
Hi, I have an Uncaught error when using get_svg or draw_to_canvas for this smarts [nH1] with qmol.
[n&H1] is the same smarts but for this one drawing works.

To Reproduce

  1. Go to https://www.rdkitjs.com/
  var smarts = "[nH1]"; 
  var qmol = RDKitModule.get_qmol(smarts);
  var canvas = document.getElementById("canvas-2");
  qmol.draw_to_canvas(canvas, -1, -1);
  1. See error in console

Expected behavior
Drawing should be working for the 2 smarts (should be the same smarts https://www.daylight.com/dayhtml/doc/theory/theory.smarts.html).
I don't have the same issue with rdkit python.

@atfera atfera changed the title Uncaught error for qmol.get_svg() Uncaught error for qmol get_svg() Mar 14, 2024
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

1 participant