vibesketch.document.stereo

Stereodescriptors of a document’s species, and as labels in its drawing (#92).

The descriptors come from vibesketch.chem.cip. In the drawing they are KET cip properties on atoms and bonds, which the canvas shows as “(R)” and “(E)”. They are a snapshot: labelling writes them, clearing removes them, and a label that no longer matches its structure after an edit is reported as out of date rather than silently trusted.

Functions

described(mol)

The labels of mol, with each atom named as its symbol and number (C2 for index 1).

stale_labels(document)

The species whose drawn labels no longer match their structure.

stereo_report(document)

Each species' descriptors, undefined stereo and enhanced-stereo groups.

with_stereo_labels(document, *[, clear])

document with every drawn structure's descriptors written as labels, or removed.

vibesketch.document.stereo.described(mol)[source]

The labels of mol, with each atom named as its symbol and number (C2 for index 1).

Parameters:

mol (Any)

Return type:

dict[str, Any]

vibesketch.document.stereo.stale_labels(document)[source]

The species whose drawn labels no longer match their structure.

Parameters:

document (Document)

Return type:

list[str]

vibesketch.document.stereo.stereo_report(document)[source]

Each species’ descriptors, undefined stereo and enhanced-stereo groups.

Parameters:

document (Document)

Return type:

dict[str, dict[str, Any]]

vibesketch.document.stereo.with_stereo_labels(document, *, clear=False)[source]

document with every drawn structure’s descriptors written as labels, or removed.

Parameters:
Return type:

Document