Skip to main content

geom.xyz_trajectory_block()

Format geometries as a multi-frame xyz block, one frame per geometry.

Usage

Source

geom.xyz_trajectory_block(
    geos,
    *,
    comments=None,
)

Parameters

geos: Sequence[Geometry]

Geometries.

comments: Sequence[str] | None = None
Comment line for each frame. Defaults to the charge and spin (see xyz_block).

Returns

str
The xyz block.

Raises

ValueError
If comments doesn’t have one entry per geometry.