orthonym.rules.diamide_chain_prefixes#

Note

Internal API. Names and behaviour may change between releases.

The prefixes on the chain carbons of a chain diamide whose amide nitrogens are substituted.

‘2-chloro-N1,N4-dimethylbutanediamide’, ‘N1,N4,2-trimethylbutanediamide’: amides.name_chain_diamide names the N-substituents of a saturated chain diamide; a group on a chain carbon was left to the general path, which declines the combination. (the Blue Book): the N-substituents are cited with N-locants; (:2877): the terminal locants of a diamide are not cited (‘2-methylpropanediamide (PIN)’,:2887);: identical prefixes are one multiplied prefix with all their locants, the N-locants first (‘N,2-dimethylpropanamide’,:21624).

orthonym.rules.diamide_chain_prefixes.chain_carbon_prefixes(mol, chain, covered, atom_to_locant, *, cite_stereo=False)#

[(chain locant, prefix name),...] for every branch on a chain carbon outside covered, or None when a branch has no name (or is bonded by more than a single bond). A structure with a stereo layer is left to the general path unless the caller cites the descriptors of the chain itself (cite_stereo: amides.name_chain_diamide when the amide nitrogens are substituted, a class the general path does not name).

orthonym.rules.diamide_chain_prefixes.merged_prefix_parts(n_groups, c_prefixes, render_n, sort_key)#

The cited prefixes, alphanumerical: an N-prefix group {name: [N locants]} and the chain prefixes; a simple name on both is one prefix with the N-locants first (‘N1,N4,2-trimethyl’).