This module contains the XYZWriter class.
Bases: object
object
Class for writing structured data to an XYZ file format.
file_path (Path) – Path to the file where data will be written.
Path
mode (str) – File open mode.
str
encoding (str) – The file encoding.
int_format (str) – Format for integers.
float_format (str) – Format for floats.
Close the file associated with this writer.
None
Writes the given data into the file.
datas (NDArray) – Data to write.
NDArray
extra_comment (str) – Additional info to add at the end of the comment. Must follow xyz guidelines. For example: ‘Info=”Fe irradiated in Fe, Ion 1”’