Changes in / [c3e83d3:5c0e717] in sasview


Ignore:
Location:
src/sas/qtgui/Perspectives/Fitting
Files:
2 edited

Legend:

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

    rf7e7e20 r6b50296  
    373373 
    374374    residuals.x = current_data.x[index][0] 
    375     residuals.dy = numpy.zeros(len(residuals.y)) 
     375    residuals.dy = numpy.ones(len(residuals.y)) 
    376376    residuals.dx = None 
    377377    residuals.dxl = None 
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    r5aad7a5 r287d356  
    958958        model = self.cbModel.currentText() 
    959959 
    960         # Assure the control is active 
    961         if not self.cbModel.isEnabled(): 
    962             return 
    963         # Empty combobox forced to be read 
     960        # empty combobox forced to be read 
    964961        if not model: 
    965962            return 
     
    11151112            self.disableModelCombo() 
    11161113            self.enableStructureCombo() 
    1117             # set the index to 0 
    1118             self.cbStructureFactor.setCurrentIndex(0) 
    1119             self.model_parameters = None 
    11201114            self._model_model.clear() 
    11211115            return 
     
    23042298        residuals = self.calculateResiduals(fitted_data) 
    23052299        self.model_data = fitted_data 
    2306         new_plots = [fitted_data] 
    2307         if residuals is not None: 
    2308             new_plots.append(residuals) 
     2300 
     2301        new_plots = [fitted_data, residuals] 
    23092302 
    23102303        # Create plots for intermediate product data 
     
    23242317            GuiUtils.deleteRedundantPlots(self.all_data[self.data_index], new_plots) 
    23252318 
    2326         # Update/generate plots 
    23272319        for plot in new_plots: 
    2328             self.communicate.plotUpdateSignal.emit([plot]) 
     2320            if hasattr(plot, "id") and "esidual" in plot.id: 
     2321                # TODO: fix updates to residuals plot 
     2322                pass 
     2323            elif plot is not None: 
     2324                self.communicate.plotUpdateSignal.emit([plot]) 
    23292325 
    23302326    def complete2D(self, return_data): 
Note: See TracChangeset for help on using the changeset viewer.