irradiapy.io.bzip2lammpswriter module
This module contains the BZIP2LAMMPSWriter class.
- class irradiapy.io.bzip2lammpswriter.BZIP2LAMMPSWriter(file_path, mode='wt', encoding=<factory>, newline=<factory>, compresslevel=9, int_format=<factory>, float_format=<factory>, excluded_items=<factory>)[source]
Bases:
objectA class to write data like a LAMMPS dump file, but compressed with bzip2.
Note
Assumed orthogonal simulation box.
- Variables:
file_path (Path) – The path to the bzip2-compressed LAMMPS dump file.
mode (str, optional (default="wt")) – The file open mode.
encoding (str, optional (default=irradiapy.config.ENCODING)) – The file encoding.
newline (str, optional (default=irradiapy.config.NEWLINE)) – The newline character for the file.
compresslevel (int, optional (default=9)) – The bzip2 compression level.
int_format (str, optional (default=irradiapy.config.INT_FORMAT)) – The format for integers.
float_format (str, optional (default=irradiapy.config.FLOAT_FORMAT)) – The format for floats.
excluded_items (list[str], optional (default=irradiapy.config.EXCLUDED_ITEMS)) – Atom fields to exclude from output.