msd_output_file_writer
A module containing the classes for writing related to an
MSD analysis to a file.
Summary
Classes:
Class for writing the data of an |
|
Class for writing the log (setup parameters) of an |
Reference
- class MSDDataWriter(filename: str)[source]
Bases:
BaseWriterClass for writing the data of an
MSDanalysis to a file.The output file is written in the legacy Diffcalc format: one row per lag index with the columns lag index, MSD in x, MSD in y and MSD in z (all in Angstrom^2).
- Parameters:
filename (str) – the filename to write to
- write(
- data: tuple[Np1DNumberArray, Np1DNumberArray, Np1DNumberArray, Np1DNumberArray, Np1DNumberArray],
Writes the data to the file.
- Parameters:
data (Tuple[Np1DNumberArray, Np1DNumberArray,) – Np1DNumberArray, Np1DNumberArray, Np1DNumberArray] the data output from the MSD.run() method
- class MSDLogWriter(filename: str | None)[source]
Bases:
BaseWriterClass for writing the log (setup parameters) of an
MSDanalysis to a file.- Parameters:
filename (str | None) – the filename to write to if None, the output is printed to stdout