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

Add/Remove explicit hydrogens doesn't work for atom that have valence less than Radical value #1555

Closed
AlexeyGirin opened this issue Jan 15, 2024 · 3 comments · Fixed by #1615

Comments

@AlexeyGirin
Copy link
Collaborator

AlexeyGirin commented Jan 15, 2024

Environment details (please complete the following information):

Describe the bug
Add/Remove explicit hydrogens doesn't work for atom that have valence less than Radical value

Steps to Reproduce

  1. Load from file: SimpleMoleculesRadical.zip (unzip first)
  2. Press Add/Remove explicit hydrogens button
    image

Actual behavior
System throws exception: IndigoException: element: bad valence on He having 0 drawn bonds, charge 0, and 1 radical electrons
image

Expected behavior
No exception
image

@AliaksandrDziarkach
Copy link
Collaborator

It is not a query-specific issue

@AlexeyGirin
Copy link
Collaborator Author

Decided to fix in Query Features - Phase II

Should not throw exception

@AlexeyGirin
Copy link
Collaborator Author

Fixed.
Version 1.18.0-rc.5.0-gb21ab5ad5-wasm32-wasm-clang-12.0.0
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment