Repository navigation
BKChem-portable for Windows
Added / Changed
SMILES stereochemistry (chirality) support: Chemistry → Read SMILES now reads @ / @@ and draws each tetrahedral centre with a wedge (forward) or hash (back) bond; for ring centres the wedge is placed on a bond pointing out of the ring, so rings stay flat. The reverse direction works too: Chemistry → Generate SMILES emits @ / @@ from drawn wedge/hash bonds (the oasa parser kept the stereochemistry, but the bridge code dropped it). Known limitation: for fused-ring systems such as α-Thujone, Generate SMILES can return the mirror image because of a pre-existing problem in oasa's SMILES writer. (bkchem/oasa_bridge.py)
Fixed
Generate SMILES crashed on molecules with both a stereocentre and a double bond (e.g. Pyrethrin II) with TypeError: unhashable type: 'explicit_hydrogen': the class defines eq without hash, which Python 3 makes unhashable. (bkchem/oasa/oasa/stereochemistry.py)
Molfile export crashed for molecules containing a radical: the radical atom numbers were still sorted with a Python 2 idiom. Export of ordinary molecules was unaffected. (bkchem/oasa/oasa/molfile.py)
Chemistry → Read InChI failed even for neutral molecules: the conversion loop's success condition could never become true on Python 3, so it always ended with "Localization of bonds, charges or movable hydrogens failed". Neutral molecules without stereochemistry now import (charged InChI still fails for a separate reason). (bkchem/oasa/oasa/inchi.py)
Read SMILES crashed on a single-atom string such as C or O (division by zero when a molecule has no bonds). (bkchem/oasa_bridge.py)