orthonym.rules.isotope_passes#
Note
Internal API. Names and behaviour may change between releases.
The passes of the isotope decorator over one labelled molecule (IUPAC 2013,.
rules.isotopes._decorate_labelled runs the strategies of the decorator once. Two kinds of input need a
second look when it declines, and each is made only then, so no name the first pass builds changes:
a stereocentre a nuclide makes: the strategies run again on the molecule with those centres unspecified and the name they build is completed (
rules.isotope_induced);a name that OPSIN reads as a tautomer of the input, where the first pass accepts only the drawing: the strategies run again with that reading accepted (
rules.isotope_compare.tautomer_passes), when the first pass refused one.
Every name still reads back as the input by the full InChIKey with its isotope layer, so a pass can add names and never a wrong one.
- orthonym.rules.isotope_passes.lone_atom_isotope_name(original)#
The name of a labelled lone atom or monoatomic ion that reads back, or None.
A lone atom names its nuclide inside its own name (‘(36Cl)chloranide’,
rules.metal_atoms.lone_atom_name); the skeleton name of the stripped atom is the name of another ion form (‘chloride’), which OPSIN does not read with a nuclide in front. The same read-back as every candidate of the decorator decides.
- orthonym.rules.isotope_passes.labelled_ion_salt_name(original, style)#
The name of a salt whose every label sits on a one-atom anion (‘potassium (18F)fluoranide’, ‘sodium deuteride’, ‘N,N,N-trimethylmethanaminium (36Cl)chloranide’) that reads back, or None.
The anion takes the name of the lone ion (
lone_atom_isotope_name();, Table 8.1 of: the skeleton name of the stripped salt gives the class word (‘fluoride’), which OPSIN does not read with a nuclide in front. The same read-back as every candidate of the decorator decides.
- orthonym.rules.isotope_passes.decorate_passes(smiles, style, namer, original, stripped, label_map)#
The name of
original(strippedandlabel_mapasrules.isotopes.strip_isotopesreturns them for it), or None. The locants of its descriptors that cite an atom of a phane amplificant are spelt as composite locants (rules.isotope_phane_locants,: every strategy of the passes writes integers, so the spelling is settled here, on the name that any of them returns.