vibesketch.document.embed¶
3D structures for a document’s species, cached in the document.
Each species gets its conformers from vibesketch.chem.embed.embed_3d()
and keeps them while its structure, charge and multiplicity stay the same, so
a redraw elsewhere on the canvas does not throw them away (see
vibesketch.document.derive). The input writers read the first
conformer.
Functions
|
|
Classes
|
What embedding did, per species id. |
Exceptions
The document has no species with that id. |
- class vibesketch.document.embed.EmbedReport(embedded=<factory>, kept=<factory>, failed=<factory>, warnings=<factory>)¶
Bases:
objectWhat embedding did, per species id.
- exception vibesketch.document.embed.UnknownSpecies¶
Bases:
KeyErrorThe document has no species with that id.
- vibesketch.document.embed.embed(document, species=None, *, count=1, replace=False)¶
documentwith 3D conformers forspecies(default: all of them).A species that has conformers keeps them unless
replaceis set. RaisesUnknownSpeciesfor an id the document does not have.