Changeset 0c83303 in sasview for src/sas/qtgui
- Timestamp:
- Oct 29, 2018 3:56:39 PM (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:
- f5cec7c
- Parents:
- 6216eb75
- Location:
- src/sas/qtgui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
r722b7d6 r0c83303 836 836 self.results_frame.setVisible(True) 837 837 if output_data: 838 self.results_panel.onPlotResults(output_data )838 self.results_panel.onPlotResults(output_data, optimizer=self.perspective().optimizer) 839 839 840 840 def actionAdd_Custom_Model(self): -
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r7fb68060 r0c83303 1571 1571 if param_dict is None: 1572 1572 return 1573 if hasattr(res, 'convergence') and len(res.convergence)>0: 1574 self.communicate.resultPlotUpdateSignal.emit(result[0]) 1573 self.communicate.resultPlotUpdateSignal.emit(result[0]) 1575 1574 1576 1575 elapsed = result[1] -
src/sas/qtgui/Utilities/ResultPanel.py
r6216eb75 r0c83303 55 55 sys.modules['bumps.gui.plot_view'] = PlotView 56 56 57 def onPlotResults(self, results ):57 def onPlotResults(self, results, optimizer="Unknown"): 58 58 # Clear up previous results 59 59 for view in (self.convergenceView, self.correlationView, … … 66 66 result = results[0][0] 67 67 filename = result.data.sas_data.filename 68 current_ time = datetime.datetime.now().strftime("%I:%M%p, %B %d, %Y")69 self.setWindowTitle(self.window_name + " - " + filename + " - " + current_ time)70 if hasattr(result, 'convergence') :68 current_optimizer = optimizer 69 self.setWindowTitle(self.window_name + " - " + filename + " - " + current_optimizer) 70 if hasattr(result, 'convergence') and len(result.convergence) > 0: 71 71 best, pop = result.convergence[:, 0], result.convergence[:, 1:] 72 72 self.convergenceView.update(best, pop) … … 92 92 for view in (self.correlationView, self.uncertaintyView, self.traceView): 93 93 view.close() 94 # no tabs in the widget - possibly LM optimizer. Mark "closed" 95 if self.count()==0: 96 self.close() 94 97 95 98 def closeEvent(self, event):
Note: See TracChangeset
for help on using the changeset viewer.