gen
parse_gen_file(filename)
Convert a provided DFTB+ .gen file into an array of atomic numbers, positions and
Parameters
filename: str path to the .xyz file to read
Returns
tuple of :obj:np.ndarray
List[Element], (N, 3) positions, (4, 3) lattice vectors, bool (if fractional)
read from the given file
Source code in chmpy/fmt/gen.py
parse_gen_string(contents, filename=None)
Convert provided xmol .xyz file contents into an array of atomic numbers and cartesian positions
Parameters
contents: str text contents of the .xyz file to read
Returns
tuple of :obj:np.ndarray
List[Element], (N, 3) positions, (4, 3) lattice vectors, bool (if fractional)
read from the given file