structuretoolkit.common.helper.set_indices#
- structuretoolkit.common.helper.set_indices(structure: Atoms, indices: ndarray) Atoms[source]#
Set the indices of atoms in the structure to the specified values.
- Parameters:
structure (ase.atoms.Atoms) – The atomic structure.
indices (numpy.ndarray) – The indices of atoms to be set.
- Returns:
The modified atomic structure.
- Return type:
ase.atoms.Atoms