bec_lib.dap_plugin_objects.LmfitService1DResult#

class LmfitService1DResult(result: list[dict], model_name: str = None, client: BECClient = None)[source]#

Bases: object

Result of fitting 1D data using lmfit.

Methods

eval

Evaluate the fit at the given x values.

plot

Plot the fit.

Attributes

data

The data from the fit.

input_data

Get the input data used for the fit.

max

Get the maximum value of the fit.

min

Get the minimum value of the fit.

params

The parameters of the fit.

report

The report of the fit.

property data#

The data from the fit.

eval(x: ndarray)[source]#

Evaluate the fit at the given x values.

Parameters:

x (array_like) – The x values to evaluate the fit at.

Returns:

The y values of the fit at the given x values.

Return type:

array_like

property input_data#

Get the input data used for the fit.

Returns:

The input data used for the fit.

Return type:

dict

property max#

Get the maximum value of the fit.

Returns:

The maximum value of the fit.

Return type:

float

property min#

Get the minimum value of the fit.

Returns:

The minimum value of the fit.

Return type:

float

property params#

The parameters of the fit.

plot()[source]#

Plot the fit.

property report#

The report of the fit.