Qudi
Public Member Functions | Public Attributes | List of all members
fitsettings.FitParametersWidget Class Reference

A widget that manages the parameters for a fit. More...

Inheritance diagram for fitsettings.FitParametersWidget:
Inheritance graph
[legend]
Collaboration diagram for fitsettings.FitParametersWidget:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, parameters)
 Definition, configuration and initialisation of the optimizer settings GUI. More...
 
def applyFitParameters (self)
 Updates the fit parameters with the new values from the widget. More...
 
def resetFitParameters (self)
 Resets the parameters in the widget to the stored values. More...
 
def updateFitParameters (self, parameters)
 Update all the parameter values. More...
 

Public Attributes

 parameters
 
 useLabel
 
 valueLabel
 
 minimumLabel
 
 maximumLabel
 
 exprLabel
 
 varyLabel
 
 widgets
 
 paramUseSettings
 

Detailed Description

A widget that manages the parameters for a fit.

Constructor & Destructor Documentation

◆ __init__()

def fitsettings.FitParametersWidget.__init__ (   self,
  parameters 
)

Definition, configuration and initialisation of the optimizer settings GUI.

Adds a row with the value, min, max and vary for each variable in parameters.

Parameters
parametersParameters: lmfit parameters collection to be displayed here

Member Function Documentation

◆ applyFitParameters()

def fitsettings.FitParametersWidget.applyFitParameters (   self)

Updates the fit parameters with the new values from the widget.

Returns
tuple(Parameters, dict): new lmfit Parameters and a dict indicating their use

◆ resetFitParameters()

def fitsettings.FitParametersWidget.resetFitParameters (   self)

Resets the parameters in the widget to the stored values.

Returns
tuple(Parameters, dict): old Parameters and dict indicating their use

◆ updateFitParameters()

def fitsettings.FitParametersWidget.updateFitParameters (   self,
  parameters 
)

Update all the parameter values.

Parameters
parametersParameters: lmfit Parameters to update the widget with

The documentation for this class was generated from the following file: