Changeset 9b9ec10 in sasview for src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
- Timestamp:
- Sep 25, 2018 8:35:34 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- fa762f4, 20f4857
- Parents:
- 085409e3 (diff), 65e76ed (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r085409e3 r9b9ec10 1536 1536 1537 1537 elapsed = result[1] 1538 if self.calc_fit ._interrupting:1538 if self.calc_fit is not None and self.calc_fit._interrupting: 1539 1539 msg = "Fitting cancelled by user after: %s s." % GuiUtils.formatNumber(elapsed) 1540 1540 logger.warning("\n"+msg+"\n") … … 2412 2412 model.setParam(key, value) 2413 2413 # add magnetic params if asked 2414 if self.chkMagnetism.isChecked() :2415 for key, value in self.magnet_params.items() and self._magnet_model.rowCount() > 0:2414 if self.chkMagnetism.isChecked() and self._magnet_model.rowCount() > 0: 2415 for key, value in self.magnet_params.items(): 2416 2416 model.setParam(key, value) 2417 2417 … … 2491 2491 self.enableInteractiveElements() 2492 2492 if return_data is None: 2493 self.calculateDataFailed("Results not available.")2494 2493 return 2495 2494 fitted_data = self.logic.new1DPlot(return_data, self.tab_id) … … 2543 2542 self.enableInteractiveElements() 2544 2543 2544 if return_data is None: 2545 return 2546 2545 2547 fitted_data = self.logic.new2DPlot(return_data) 2548 # assure the current index is set properly for batch 2549 if len(self._logic) > 1: 2550 for i, logic in enumerate(self._logic): 2551 if logic.data.name in fitted_data.name: 2552 self.data_index = i 2553 2546 2554 residuals = self.calculateResiduals(fitted_data) 2547 2555 self.model_data = fitted_data
Note: See TracChangeset
for help on using the changeset viewer.