mantidimaging.gui.windows.spectrum_viewer.fitting_form module#
- class mantidimaging.gui.windows.spectrum_viewer.fitting_form.FittingFormWidgetPresenter(view: FittingFormWidgetView)[source]#
Bases:
objectPresenter for the fitting tab
Handles the behaviour of the fitting tab
- get_current_roi() SensibleROI[source]#
- on_initial_params_edited() None[source]#
Handles updates when the initial fitting parameters are edited.
If the initial fit is visible, updates the plot with the new initial fit. Otherwise, re-runs the fit with the updated parameters, updates the fitted parameter values, and displays the new fit result.
- run_region_fit() None[source]#
Run a fit on the currently selected ROI and update the GUI/export table.
- show_initial_fit() None[source]#
Displays the initial fit curve on the fitting display widget. Retrieves current TOF data and the initial parameter values from the view and evaluates the fitting model using these parameters to generate the initial fit curve.
- update_fitting_function(fitting_obj: type[BaseFittingFunction]) None[source]#
- class mantidimaging.gui.windows.spectrum_viewer.fitting_form.FittingFormWidgetView(spectrum_viewer: SpectrumViewerWindowView)[source]#
Bases:
QWidgetWidget for the form area of the fitting tab
Contains widgets for selecting fitting model and parameters