vacf_output_file_writer
A module containing the classes for writing related to an
VACF analysis to a file.
Summary
Classes:
Class for writing the data of an |
|
Class for writing the log (setup parameters) of an |
|
Class for writing the spectrum of an |
|
Class for writing the windowed (apodized) correlation function of an |
Reference
- class VACFDataWriter(filename: str)[source]
Bases:
BaseWriterClass for writing the data of an
VACFanalysis to a file.The output file is written in the legacy FreqCalc/Fluxfreqcalc format: one row per lag with the columns lag time in ps and normalized VACF.
- Parameters:
filename (str) – the filename to write to
- write(
- data: tuple[Np1DNumberArray, Np1DNumberArray],
Writes the data to the file.
- Parameters:
data (Tuple[Np1DNumberArray, Np1DNumberArray]) – the time axis and correlation function output from the VACF.run() method
- class VACFLogWriter(filename: str | None)[source]
Bases:
BaseWriterClass for writing the log (setup parameters) of an
VACFanalysis to a file.- Parameters:
filename (str | None) – the filename to write to if None, the output is printed to stdout
- class VACFSpectrumDataWriter(filename: str)[source]
Bases:
BaseWriterClass for writing the spectrum of an
VACFanalysis to a file.The output file is written in the legacy ft.f format: one row per frequency index with the columns wavenumber in cm^-1 and amplitude.
- Parameters:
filename (str) – the filename to write to
- write(
- data: tuple[Np1DNumberArray, Np1DNumberArray],
Writes the spectrum to the file.
- Parameters:
data (Tuple[Np1DNumberArray, Np1DNumberArray]) – the wavenumbers and amplitudes output from the
vacf_spectrum()function
- class VACFWindowedDataWriter(filename: str)[source]
Bases:
BaseWriterClass for writing the windowed (apodized) correlation function of an
VACFanalysis to a file.The output file is written in the legacy ft.f windowfile format: one row per lag with the columns lag time in ps and windowed correlation function.
- Parameters:
filename (str) – the filename to write to
- write(
- data: tuple[Np1DNumberArray, Np1DNumberArray],
Writes the windowed correlation function to the file.
- Parameters:
data (Tuple[Np1DNumberArray, Np1DNumberArray]) – the time axis and the windowed correlation function output from the
vacf_spectrum()function