Skip to main content

geom.xyz_block()

Format a geometry as an xyz block.

Usage

Source

geom.xyz_block(
    geo,
    *,
    comment=None,
)

Parameters

geo: Geometry

Geometry.

comment: str | None = None
Comment line. Defaults to the charge and spin, e.g. "Geometry(q=0, s=0)".

Returns

str
The xyz block.

Raises

ValueError
If comment contains a newline.