Files
rdkit/Code
Yakov Pechersky 1a3cc2d5e8 fix: kekulization failure for V3000 molblocks with aromatic bonds and explicit H (#9141)
V3000 parsing sets aromatic flags on bonds but not atoms. When removeHs
strips an explicit H from nitrogen in an aromatic ring, molRemoveH
checked heavyAtom->getIsAromatic() to decide whether to increment
numExplicitHs — but that flag was always false for V3000-parsed atoms.

Without the explicit H count, the kekulizer cannot distinguish pyrrole N from pyridine N,
causing
"Can't kekulize mol" errors on valid ChemDraw-exported molblocks.

Fix: use isAromaticAtom(), which checks both atom and bond aromatic
flags
2026-03-14 06:50:01 +01:00
..
2025-11-27 14:25:57 +01:00
2025-10-08 16:08:01 +02:00
2026-02-26 08:58:36 +01:00
2023-11-10 15:32:54 +01:00
2019-10-10 20:18:43 +09:00