neighbormodels.structure.from_file¶
-
from_file
(structure_file: str) → pymatgen.core.structure.Structure[source]¶ Generates a pymatgen
Structure
object from a supported file format.Parameters: structure_file – Path to the structure file. Supported formats include CIF, POSCAR/CONTCAR, CHGCAR, LOCPOT, vasprun.xml, CSSR, Netcdf, and pymatgen’s serialized structures. Returns: A pymatgen Structure
object.