Skip to main content

xyz_trajectory_comments()

Get the comment line of each frame of a multi-frame xyz block.

Usage

Source

xyz_trajectory_comments(xyz_block)

Programs often store a per-frame value there, such as CREST’s energies.

Parameters

xyz_block: str
The xyz block.

Returns

list[str]
The comment lines, stripped of surrounding whitespace, in order.

Raises

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