XYZ Writer
- class XyzWriter[source]
Bases:
object
A writer class for
.xyz
files.Examples
Writing to a File
import stk bb1 = stk.BuildingBlock('BrCCBr', [stk.BromoFactory()]) writer = stk.XyzWriter() writer.write(molecule=bb1, path='bb1.xyz')
Methods
to_string
(molecule[, atom_ids])Get the
.xyz
string of molecule.write
(molecule, path[, atom_ids])Write molecule to
.xyz
file format.