Changes in / [5c0e717:c3e83d3] in sasview
- Location:
- src/sas/qtgui/Perspectives/Fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py
r6b50296 rf7e7e20 373 373 374 374 residuals.x = current_data.x[index][0] 375 residuals.dy = numpy. ones(len(residuals.y))375 residuals.dy = numpy.zeros(len(residuals.y)) 376 376 residuals.dx = None 377 377 residuals.dxl = None -
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r287d356 r5aad7a5 958 958 model = self.cbModel.currentText() 959 959 960 # empty combobox forced to be read 960 # Assure the control is active 961 if not self.cbModel.isEnabled(): 962 return 963 # Empty combobox forced to be read 961 964 if not model: 962 965 return … … 1112 1115 self.disableModelCombo() 1113 1116 self.enableStructureCombo() 1117 # set the index to 0 1118 self.cbStructureFactor.setCurrentIndex(0) 1119 self.model_parameters = None 1114 1120 self._model_model.clear() 1115 1121 return … … 2298 2304 residuals = self.calculateResiduals(fitted_data) 2299 2305 self.model_data = fitted_data 2300 2301 new_plots = [fitted_data, residuals] 2306 new_plots = [fitted_data] 2307 if residuals is not None: 2308 new_plots.append(residuals) 2302 2309 2303 2310 # Create plots for intermediate product data … … 2317 2324 GuiUtils.deleteRedundantPlots(self.all_data[self.data_index], new_plots) 2318 2325 2326 # Update/generate plots 2319 2327 for plot in new_plots: 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]) 2328 self.communicate.plotUpdateSignal.emit([plot]) 2325 2329 2326 2330 def complete2D(self, return_data):
Note: See TracChangeset
for help on using the changeset viewer.