LAMPSQw
Readers for dynamic data
- class MDMC.readers.observables.LAMPSQw.LAMPSQw(file_name: str)[source]
A class for reading SQw files from LAMP
LAMP’s ascii output uses three files: 1 for independent variables and parameters (…_LAMP), another for dependent variables (…_LAMPascii), and a third for the errors in the dependent variables (…LAMPascii_e)
- file_indep
File containing the independent variables
- Type:
file
- file_dep
File containing the dependent variables
- Type:
file
- file_dep_err
File containing the errors on the dependent variables
- Type:
file
- parse(**settings: dict) None [source]
Parse into SQw format
E is the energy transfer (in meV) Q is wavevector transfer (in Ang^-1)
- parse_dep_var(file: IO) ndarray [source]
Parses the dependent variables or their errors.
- Parameters:
file (file) – Open file containing independent data
- Returns:
A 2d array with dimensions of the two independent variables
- Return type:
- parse_indep_var(file: IO) tuple[ndarray, ndarray] [source]
Parses the independent variables
Splits the file so that the data can be extracted into a
array
byself._get_data
- Parameters:
file (file) – Open file containing independent data
- Returns:
(X, Y) where X and Y are arrays of the two independent variables
- Return type: