models¶
-
class
phlab.model.dist_disp_osc(inp_dir='./_input/', out_dir='./_output/', nmodel=0, name='')[source]¶ Creates object for distorted and displaced harmonic oscillator model.
- Args:
- inp_dir: str
- name of the input directory.
- out_dir: str
- name of the output directory.
- nmodel: int
- serial number of the model.
- name: str
- name of the model.
- Attributes:
- input_default: dict
- dictionary with default input parameters.
- input: dict
- dictionary with current input parameters.
- npoints: int
- number of points in the spectrum.
- spec_max: float
- max limt of enrgy loss.
- spec_min: float
- min limt of enrgy loss.
- param2fit: object
- parameters to fit.
- nruns: int
- number of runs.
- color: str
- color of the line.
- input_class: object
- returns input_handler for this model.
- x: float
- energy loss in eV for the phonon contribution.
- y: float
- rixs intensities (arb. units) for the phonon contribution.
- y_norm: float
- normalized rixs intensities (arb. units) for the phonon contribution.
-
class
phlab.model.double_osc(inp_dir='./_input/', out_dir='./_output/', nmodel=0, name='')[source]¶ Creates object for 2D harmonic oscillator model.
- Args:
- inp_dir: str
- name of the input directory.
- out_dir: str
- name of the output directory.
- nmodel: int
- id number of the model.
- name: str
- name of the model.
- Attributes:
- input_default: dict
- dictionary with default input parameters.
- input: dict
- dictionary with current input parameters.
- npoints: int
- number of points in the spectrum.
- spec_max: float
- max limt of enrgy loss.
- spec_min: float
- min limt of enrgy loss.
- param2fit: object
- parameters to fit.
- nruns: int
- number of runs.
- color: str
- color of the line.
- input_class: object
- returns input_handler for this model.
- x: float
- energy loss in eV for the phonon contribution.
- y: float
- rixs intensities (arb. units) for the phonon contribution.
- y_norm: float
- normalized rixs intensities (arb. units) for the phonon contribution.
-
class
phlab.model.parameters2fit[source]¶ Defines paramters to fit.
- Attributes:
- dict: dict
- dictionary with parameters to fit
-
class
phlab.model.single_osc(inp_dir='./_input/', out_dir='./_output/', nmodel=0, name='')[source]¶ Creates object for 1D harmonic oscillator model.
- Args:
- inp_dir: str
- name of the input directory.
- out_dir: str
- name of the output directory.
- nmodel: int
- id number of the model.
- name: str
- name of the model.
- Attributes:
- input_default: dict
- dictionary with default input parameters.
- input: dict
- dictionary with current input parameters.
- npoints: int
- number of points in the spectrum.
- spec_max: float
- max limt of enrgy loss.
- spec_min: float
- min limt of enrgy loss.
- param2fit: object
- parameters to fit.
- nruns: int
- number of runs.
- color: str
- color of the line
- input_class: object
- returns input_handler for this model.
- x: float
- energy loss in eV for the phonon contribution.
- y: float
- rixs intensity (arb. units) for the phonon contribution.
- y_norm: float
- normalized rixs intensity (arb. units) for the phonon contribution.