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