rd.add_coordinates()
Embed 3D coordinates if the molecule has none.
Usage
rd.add_coordinates(
mol,
*,
seed=EMBED_SEED,
in_place=False,
)Parameters
mol: Mol-
RDKit molecule.
seed: int | None = EMBED_SEED-
Random seed for embedding. If
None, use a random seed. in_place: bool = False-
If
True, modifymolinstead of returning a copy.
Returns
Mol-
The molecule with coordinates, or
them.molunchanged if it already had
Raises
GeometryConversionError- If embedding fails, even from random initial coordinates.