Skip to main content

from_xyz_trajectory_block()

Parse geometries from a multi-frame xyz block, e.g. a list of conformers.

Usage

Source

from_xyz_trajectory_block(
    xyz_block,
    *,
    charge,
    spin,
)

Each frame is an atom count line, a comment line, and the atom lines (see from_xyz_block). A single-frame block gives a list of one geometry.

Parameters

xyz_block: str

The xyz block.

charge: int

Total molecular charge, for every frame.

spin: int
Number of unpaired electrons, for every frame.

Returns

list[Geometry]
The parsed geometries, in order.

Raises

XYZFormatError
If the block is empty, or a frame is malformed.