obs_factory
Module for observable reader abstract class
- class MDMC.readers.observables.obs_reader.ObservableReader(file_name: str)[source]
Abstract class that defines methods common to all readers for observables
ObservableReaders are created using ObservableReaderFactory
- assign(observable: Observable) None [source]
Abstract method to assign the parsed information into the Observable
- Parameters:
observable (Observable) – An MDMC Observable that will be assigned the data parsed by the reader.
- property data: dict
A dictionary of dictionaries containing the independent variables, dependent variables and the associated errors.
- Returns:
The independent variables, dependent variables and the errors on the dependent variables
- Return type:
- abstract property dependent_variables: None
The dependent variables
- Returns:
A dictionary of the dependent variables
- Return type:
- class MDMC.readers.observables.obs_reader.PDFReader(file_name: str)[source]
Abstract base subclass that adds attributes & methods common to all PDF readers
- property PDF: ndarray
Get or set the total pair distribution function between pairs (in
barn
) :returns: total pair distribution function (inbarn
) :rtype: numpy.ndarray
- property PDF_err: ndarray
Get or set the error on the total pair distribution function between pairs (in
barn
) :returns: error on the total pair distribution function (inbarn
) :rtype: numpy.ndarray
- property dependent_variables: dict
Get the dependent variable PDF, the pair distribution function (in
barn
)- Returns:
The dependent variable, PDF (in
barn
)- Return type:
- property errors: dict
Get the errors on the dependent variable
- Returns:
The error on PDF (in
barn
)- Return type:
- class MDMC.readers.observables.obs_reader.SQwReader(file_name: str)[source]
Abstract base subclass that adds attributes & methods common to all SQw readers
- property E: float
Get or set the energy transfer, E, in
meV
- Returns:
Energy transfer, E, in
meV
- Return type:
array
- property Q: float
Get or set the momentum transfer, Q, in
Ang^-1
- Returns:
Momentum transfer, Q, in
Ang^-1
- Return type:
array
- property dependent_variables: dict
Get the dependent variables, SQw (in
arb
)- Returns:
The dependent variables, SQw (in
arb
)- Return type:
- property errors: dict
Get the errors on the dependent variables
- Returns:
The error on SQw (in
arb
)- Return type: