Ignore:
Timestamp:
Aug 22, 2018 7:02:41 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
54492dc
Parents:
f7d39c9 (diff), 0fe7e5b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'ESS_GUI' of https://github.com/SasView/sasview into ESS_GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    recfe6b6 r0fe7e5b  
    977977        if category == CATEGORY_STRUCTURE: 
    978978            model = None 
     979 
     980        # Reset parameters to fit 
     981        self.parameters_to_fit = None 
     982        self.has_error_column = False 
     983        self.has_poly_error_column = False 
     984 
    979985        self.respondToModelStructure(model=model, structure_factor=structure) 
    980986 
     
    16501656        Take func and throw it inside the magnet model row loop 
    16511657        """ 
    1652         for row_i in range(self._model_model.rowCount()): 
     1658        for row_i in range(self._magnet_model.rowCount()): 
    16531659            func(row_i) 
    16541660 
     
    16621668        if self._magnet_model.rowCount() == 0: 
    16631669            return 
    1664  
    1665         def iterateOverMagnetModel(func): 
    1666             """ 
    1667             Take func and throw it inside the magnet model row loop 
    1668             """ 
    1669             for row_i in range(self._magnet_model.rowCount()): 
    1670                 func(row_i) 
    16711670 
    16721671        def updateFittedValues(row): 
     
    22282227        """ 
    22292228        fitted_data = self.logic.new1DPlot(return_data, self.tab_id) 
    2230         self.calculateResiduals(fitted_data) 
     2229        residuals = self.calculateResiduals(fitted_data) 
    22312230        self.model_data = fitted_data 
     2231 
     2232        new_plots = [fitted_data, residuals] 
    22322233 
    22332234        # Create plots for intermediate product data 
     
    22362237            pq_data.symbol = "Line" 
    22372238            self.createNewIndex(pq_data) 
     2239            new_plots.append(pq_data) 
    22382240        if sq_data is not None: 
    22392241            sq_data.symbol = "Line" 
    22402242            self.createNewIndex(sq_data) 
     2243            new_plots.append(sq_data) 
     2244 
     2245        if self.data_is_loaded: 
     2246            GuiUtils.deleteRedundantPlots(self.all_data[self.data_index], new_plots) 
    22412247 
    22422248    def complete2D(self, return_data): 
     
    22742280        residuals_plot.id = "Residual " + residuals_plot.id 
    22752281        self.createNewIndex(residuals_plot) 
     2282        return residuals_plot 
    22762283 
    22772284    def onCategoriesChanged(self): 
Note: See TracChangeset for help on using the changeset viewer.