structuretoolkit.common.helper.get_species_indices_dict#
- structuretoolkit.common.helper.get_species_indices_dict(structure: Atoms) dict[source]#
Get a dictionary mapping element symbols to their corresponding indices in the structure.
- Parameters:
structure (ase.atoms.Atoms) – The atomic structure.
- Returns:
A dictionary mapping element symbols to their corresponding indices.
- Return type:
dict