orthonym.validation.second_cip_labeller#
Note
Internal API. Names and behaviour may change between releases.
A second CIP labeller for the stereodescriptors OPSIN cannot read.
A name whose stereo layer OPSIN refuses (lowercase r/s, “Achiral cyclic compounds”; a ring
system on which OPSIN fails to assign CIP labels) has its constitution checked by OPSIN on the stereo-stripped name
and each descriptor checked against the input’s CIP labels at its unit (validation.stereo_descriptors), labels
that come from the centres engine (perception.stereo.assign_stereochemistry). Where such a name is offered at
the best-effort tier (assembly.stereo_unread_offer, user decision 2026-11-19), every unit the name cites must
also carry the same code from RDKit’s own implementation of the CIP rules (rdCIPLabeler), so two independent
labellers agree on every descriptor that OPSIN does not read. This module is the one place on the naming path that
calls rdCIPLabeler directly; everywhere else the labels come from assign_stereochemistry.
- orthonym.validation.second_cip_labeller.cited_codes_agree(name, smiles, reduced)#
True when
validation.stereo_descriptors.checked_block_unitsfinds the reading ofnameforsmiles(reduced=namewith its descriptor blocks stripped) and RDKit’srdCIPLabelergives every unit the reading cites the code the centres engine gives it. False on anything it cannot establish.