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

A widget that contains a fit function combobox, an estimator combobox and a remove button. More...

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

Public Member Functions

def __init__ (self, name, all_fits, fit=None, estimator=None)
 Create a FitConfigWidget. More...
 
def fitChanged (self, index)
 The fit changed, update the estimator ComboBox. More...
 
def estimatorChanged (self, index)
 Estimator changed. More...
 
def applySettings (self)
 Copy widget contents to internal variables.
 
def resetSettings (self)
 Restore widget contents from external variable.
 
def removeWidget (self)
 Remove button pressed, hide widget and send signal for removal.
 

Public Attributes

 name
 
 fit
 
 estimator
 
 all_fits
 
 nameLabel
 
 fitComboBox
 
 estComboBox
 
 delButton
 
 delIcon
 

Static Public Attributes

 sigRemoveFit = QtCore.Signal(str)
 

Detailed Description

A widget that contains a fit function combobox, an estimator combobox and a remove button.

Constructor & Destructor Documentation

◆ __init__()

def fitsettings.FitConfigWidget.__init__ (   self,
  name,
  all_fits,
  fit = None,
  estimator = None 
)

Create a FitConfigWidget.

Parameters
namestr: name of the fit
all_fitsdict: dict of all fits, their estimators and parameters
fitstr: optional name of fit function to be selected
etimatorstr: optional name of estimator to be selected

Member Function Documentation

◆ estimatorChanged()

def fitsettings.FitConfigWidget.estimatorChanged (   self,
  index 
)

Estimator changed.

Nothing really needs to happen.

◆ fitChanged()

def fitsettings.FitConfigWidget.fitChanged (   self,
  index 
)

The fit changed, update the estimator ComboBox.

Parameters
indexint: index of the new selected fit

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