dpdata.xyz package

Submodules

dpdata.xyz.quip_gap_xyz module

class dpdata.xyz.quip_gap_xyz.QuipGapxyzSystems(file_name)[source]

Bases: object

deal with QuipGapxyzFile.

Methods

get_block_generator

handle_single_xyz_frame

get_block_generator()[source]
static handle_single_xyz_frame(lines)[source]

dpdata.xyz.xyz module

dpdata.xyz.xyz.coord_to_xyz(coord: ndarray, types: list) str[source]

Convert coordinates and types to xyz format.

Parameters:
coordnp.ndarray

coordinates, Nx3 array

typeslist

list of types

Returns:
str

xyz format string

Examples

>>> coord_to_xyz(np.ones((1,3)), ["C"])
1

C 1.000000 1.000000 1.000000

dpdata.xyz.xyz.xyz_to_coord(xyz: str) tuple[ndarray, list][source]

Convert xyz format to coordinates and types.

Parameters:
xyzstr

xyz format string

Returns:
coordsnp.ndarray

coordinates, Nx3 array

typeslist

list of types