neighbormodels.neighbors.count_neighbors¶
-
count_neighbors(cell_structure: pymatgen.core.structure.Structure, r: float) → neighbormodels.neighbors.NeighborData[source]¶ Builds a data frame containing neighbor counts grouped over site-index pairs and separation distances.
Parameters: - cell_structure – A pymatgen
Structureobject. - r – Radius of sphere.
Returns: A named tuple with three field names:
neighbor_countA pandas
DataFrameof neighbor counts aggregated over site-index pairs and separation distances.sublattice_pairsA pandas
DataFrameof neighbor distances mapped to unique bin intervals.structureA copy of the
Structureobject defining the crystal structure.
- cell_structure – A pymatgen