orthonym.rules.cage_free_valence#
Note
Internal API. Names and behaviour may change between releases.
The free valence of an unsaturated von Baeyer substituent takes its low locant before the ‘ene’ and ‘yne’ endings.
### ****... criteria of numbering: (indicated hydrogen, then principal characteristic groups
and free valences) come before (hydro/dehydro prefixes and ‘ene’ and ‘yne’ endings).
(the Blue Book): ‘2-[bicyclo[6.6.1]pentadeca-8(15)-en-1-yl]ethan-1-ol (PIN)’, not ‘…pentadec-1(15)-en-8-yl…’.
The cage analyzer numbers the ring system for the parent (the enes low); ring_substituents._lowest_locant_cage_numbering
then moved the free valence only through the automorphisms that keep every double bond on a double bond, so the enes kept
their locants and the free valence took the higher bridgehead. Here every automorphism of the ring SKELETON (elements
kept, bond orders left out) is a candidate numbering: it maps the skeleton onto itself, so the von Baeyer descriptor and
the heteroatom locants stay the same (each candidate is audited again), and the multiple bonds are cited on it anew.
- orthonym.rules.cage_free_valence.free_valence_first_enes(sub, cage, cage_atoms, attach_sub, stem, allow_mancude=False)#
(free-valence locant, elided parent stem)for an unsaturated cage with no aromatic atom, or None (a saturated or aromatic cage, or no candidate that the audit and the unsaturation renderer accept: the caller keeps its numbering). The candidate with the lowest free-valence locant wins, then the lowest locants of the multiple bonds together, then of the double bonds.