epam / epam/Indigo

IndigoException while calculating properties for molecules containing "Ba" atom

Open
#653 0 comments 0 reactions 0 assignees View on GitHub
Core Priority: High
Dominant language
C++
Stars
406
Forks
134
Avg merge
2d 11h
Merged PRs (30d)
24

Description

For some molecules Indigo throws the exceptions related to bad valences on atom "Ba", which shouldn't happen.

The example of the exception and corresponding code are shown below.

```
>>> from indigo import Indigo

>>> ba = indigo.loadMolecule('[Ba+]Cl')
>>> ba_semicl = indigo.loadMolecule('[Ba+]Cl')
>>> ba_semicl.molecularWeight()
172.7799949645996
>>> ba_semicl.grossFormula()
'Ba Cl'

>>> ba_from_file = indigo.loadMolecule('Ba_semiCl.mol')
>>> ba_from_file.grossFormula()
indigo.IndigoException: element: bad valence on Ba having 1 drawn bonds, charge 1, and 0 radical electrons
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.