xnn.common.data.runner_io.iter_runner_data#
- xnn.common.data.runner_io.iter_runner_data(path, units='xnn', charges=True)[source]#
Iterate over the structures of a RuNNer
input.datafile.- Parameters:
path (str or pathlib.Path) – The file.
units (str, optional) –
"xnn"(default): Angstrom, eV and eV/Angstrom;"atomic": the file’s bohr, hartree and hartree/bohr unchanged.charges (bool, optional) – Return the per-atom charge column as the
chargeslabel (default). Data sets without reference charges carry zeros in that column; passFalseso they are not taken for labels.
- Yields:
dict – Structure dicts with
pos,atomic_numbers,cell,pbcand, when present,energy,forces,charges,total_chargeandcomment.- Return type: