load_structure¶
- jaxrens.init.structure.load_structure(path)[source]¶
Read a single founder structure from disk via ASE.
- Parameters:
path (Path | str) – Path to a structure file (any ASE-readable format: extxyz, cif, POSCAR, etc.).
- Returns:
positions: (n_atoms, 3) float32 array in Cartesian coords (Å).
types: (n_atoms,) int32 array of contiguous 0-based type indices.
cell: (3, 3) float32 array (Å), rows are lattice vectors.
symbol_map: {type_index -> element_symbol}, e.g. {0: “Si”, 1: “O”}. Ordering reflects first appearance in the atoms list.
- Return type:
- Raises:
FileNotFoundError – If path does not exist.
ValueError – If the file contains multiple frames, has no simulation cell, or contains no atoms.