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.

get_bound(row: tuple[QWidget, ...]) tuple[float | None, float | None][source]#
get_bound_parameters() list[tuple[float | None, float | None]][source]#
get_fitted_param_values() list[float][source]#
get_initial_param_values() list[float][source]#
set_fit_quality(rss: float, rss_per_dof: float) None[source]#

Update the fit quality display with raw and reduced residual sum of squares.

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]#