orthonym.rules.pah_attachment#
Note
Internal API. Names and behaviour may change between releases.
The locant of the free valence of a retained fused hydrocarbon substituent.
“General methodology for naming substituent groups” gives the free valence of a ring the lowest
locant its numbering allows (‘naphthalen-2-yl’, never the equivalent ‘-6-yl’; the Blue Book heading,:15802). The
numbering of a retained fused hydrocarbon is fixed, so the locant is read off the tabulated
numbering of POLYCYCLIC_DATA over every automorphism of the ring system
(polycyclics.get_polycyclic_iupac_locants) and not off the alpha/beta heuristic of
polycyclics._map_pah_atoms_to_iupac, which numbers the ring positions of naphthalene only.
- orthonym.rules.pah_attachment.pah_attachment_locant(mol, ring_atoms, attachment_atom, pah_name)#
The lowest plain locant of
attachment_atomin the retained PAHpah_namethat is the ring systemring_atomsofmol, or None when the numbering is not tabulated or the atom takes a fusion locant.