EISFitTemplate

class eispac.core.EISFitTemplate(filename, template, parinfo)[source]

Bases: object

Representation of fitting parameters for a particular line or lines

Parameters:
  • filename (str or pathlib.Path) – Path to fitting template file

  • template (dict) – Dictionary of template parameters

  • parinfo (list) – List of fitting parameters where each entry is a dict

Attributes Summary

central_wave

Wavelength value in the center of the template wavelength range

funcinfo

List of dicts specifying each subcomponent function used in the template

Methods Summary

get_funcinfo(template)

Return a list of dictionaries where each entry describes the parameters for one of the fitting basis functions

read_template(filename)

Create EISFitTemplate from template file

Attributes Documentation

central_wave

Wavelength value in the center of the template wavelength range

funcinfo

List of dicts specifying each subcomponent function used in the template

Methods Documentation

static get_funcinfo(template)[source]

Return a list of dictionaries where each entry describes the parameters for one of the fitting basis functions

Parameters:

template (list) –

Returns:

funcinfo

Return type:

list

classmethod read_template(filename)[source]

Create EISFitTemplate from template file

Parameters:

filename (str or pathlib.Path) – Path to template file

Returns:

cls – Object containing the fit template

Return type:

EISFitTemplate class instance