box_reader
A module containing the BoxReader class and its associated methods.
Summary
Classes:
A class for reading data-style box files. |
Functions:
Reads a data-style box file. |
Reference
- class BoxReader(filename: str | list[str])[source]
Bases:
BaseReaderA class for reading data-style box files.
Initializes the BaseReader with the given filename.
- Parameters:
filename (str or list of str) – The name of the file to read from or a list of filenames to read from.
- Raises:
FileNotFoundError – If the given file does not exist.
- read() tuple[ndarray, ndarray, ndarray][source]
Reads a data-style box file.
- Returns:
The steps, box lengths and box angles from the box file.
- Return type:
tuple[np.ndarray, np.ndarray, np.ndarray]
- logger = <CustomLogger PQAnalysis.BoxReader (INFO)>