mantidimaging.gui.widgets.spectrum_widgets.fitting_param_form_widget module#

class mantidimaging.gui.widgets.spectrum_widgets.fitting_param_form_widget.FittingParamFormWidget(presenter: SpectrumViewerWindowPresenter, parent=None)[source]#

Bases: QWidget

From for inputting and viewing fitting parameters.

Shows a row for each parameter in the current fitting model, with initial and final values, and controls to fix and set ranges. Has controls for getting initial parameters and running a fit. Has space to show goodness of fit measures.

clear_rows() None[source]#

Remove all existing rows from the widget.

fromROIButtonClicked#

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

get_bound(row: tuple[QWidget, ...]) tuple[float | None, float | None][source]#
get_bound_parameters() list[tuple[float | None, float | None]][source]#
get_initial_param_values() list[float][source]#
initialEditFinished#

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

set_fitted_parameter_values(values: dict[str, float]) None[source]#
set_fixed_parameters() None[source]#
set_parameter_values(values: dict[str, float]) None[source]#
set_parameters(params: list[str]) None[source]#

Set parameters in the widget. :param params: List of parameter names

show_range_edit_fields() None[source]#