to_model#

biotite.interface.pymol.to_model(atom_array: AtomArray[Any], delocalize_bonds: bool = False) → Indexed[source]#

Convert an AtomArray into a chempy.models.Indexed object.

Parameters:
atom_arrayAtomArray

The structure to be converted.

delocalize_bondsbool, optional

If set to true, use PyMOL’s delocalized bond order for aromatic bonds. Otherwise, always use formal bond orders.

Returns:
chempy_modelIndexed

The converted structure.