exatomic.interfaces.xyz module
XYZ File Editor
- class exatomic.interfaces.xyz.XYZ(path_stream_or_string, as_interned=False, nprint=30, name=None, description=None, meta=None, encoding=None, ignore=False)[source]
Bases:
Editor
An editor for programmatically editing xyz files.
- parse_atom(unit='Angstrom', names=('symbol', 'x', 'y', 'z'))[source]
Parse the atom table from the current xyz file.
- Parameters:
unit (str) – Default xyz unit of length is the Angstrom
- classmethod from_universe(universe, atom_table='atom', float_format='% .8f')[source]
Create an xyz file editor from a given universe. If the universe has more than one frame, creates an xyz trajectory format editor.
- property atom
- property frame