Model conversion API¶
- ammolite.convert_to_chempy_model(atom_array)¶
Convert an
AtomArrayinto achempy.models.Indexedobject.- Returns
- chempy_modelIndexed
The converted structure.
- ammolite.convert_to_atom_array(chempy_model, include_bonds=False)¶
Convert a
chempy.models.Indexedobject into anAtomArray.The returned
AtomArraycontains the optional annotation categoriesb_factor,occupancy,chargeandaltloc_id. No altloc ID filtering is performed.- Parameters
- chempy_modelIndexed
The
chempymodel.- include_bondsbool, optional
If set to true, an associated
BondListwill be created for the returned atom array.
- Returns
- atom_arrayAtomArray
The converted structure.