orthonym.rules.phane_pin#

Note

Internal API. Names and behaviour may change between releases.

Phane names for the structures names with a phane name.

The producers read the same structure test as the spelling check of the cyclic phane rule (orthonym.validation.spelling.cyclophane): a cyclophane is what the check expects a phane name for.

orthonym.rules.phane_pin.general_phane_name(mol)#

The phane name of a cyclophane (1)) as writes it, or None when the structure is outside what is built. Memoised for the last molecule.

orthonym.rules.phane_pin.is_p52_cyclophane(mol)#

True when mol has a cyclophane skeleton in the sense of (1).

orthonym.rules.phane_pin.linear_phane_name(mol)#

The linear phane name of a structure whose PIN is one (2),, as writes it, or None when the structure is outside what is built. Memoised for the last molecule.

orthonym.rules.phane_pin.p52_cyclophane_systems(mol)#

The atoms of each ring system that holds a cyclophane skeleton (1)), ordered by lowest atom index. A ring system is a group of rings that share two atoms or more (the macrocycle shares the atoms between the attachment atoms of a ring with it), so the whole skeleton of [2.2]paracyclophane is one system; rings that share one atom (spiro) are kept apart. A system that holds a tetrapyrrole macrocycle is left out, and so is one whose macrocycles have fewer than ten atoms (see the module text: unjudged). Empty when mol is no cyclophane or is unjudged, and for a molecule without ring.

orthonym.rules.phane_pin.verified_or_none(name, smiles)#

name when OPSIN reads it back to the full InChIKey of smiles (and agrees on radicals and on the place of a hydron), else None: the producers offer a name and the round trip keeps or voids it. The read is the engine’s own (namer._shipped_name_round_trip, memoised, no fail-open branch), so an OPSIN that cannot be asked voids the name too. For a structure with specified stereo the read must also give its isomeric SMILES.