Changeset 477c473 in sasview
- Timestamp:
- Nov 16, 2017 2:23:30 PM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- d744767
- Parents:
- a657de3
- Location:
- src/sas/qtgui/Perspectives/Inversion
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Inversion/InversionPerspective.py
rbcf1215 r477c473 28 28 29 29 30 # TODO: Remove data31 30 # TODO: Modify plot references, don't just send new 32 31 # TODO: Update help with batch capabilities 33 # TODO: Easy way to scroll through results - no tabs in window(?) - 'spreadsheet'34 32 # TODO: Method to export results in some meaningful way 35 33 class InversionWindow(QtGui.QTabWidget, Ui_PrInversion): … … 53 51 54 52 self.logic = InversionLogic() 53 54 self.dmaxWindow = None 55 55 56 56 # The window should not close … … 300 300 self.pr_plot_list.pop(self._data) 301 301 self.data_plot_list.pop(self._data) 302 if self.dmaxWindow is not None: 303 self.dmaxWindow = None 302 304 self.dataList.removeItem(self.dataList.currentIndex()) 303 305 self.dataList.setCurrentIndex(0) … … 331 333 GuiUtils.updateModelItemWithPlot( 332 334 self._data, QtCore.QVariant(self.data_plot), title) 335 if self.dmaxWindow is not None: 336 self.dmaxWindow.pr_state = self._calculator 337 self.dmaxWindow.nfunc = self.getNFunc() 338 333 339 self.mapper.toFirst() 334 340 … … 360 366 Open the Explorer window to see correlations between params and results 361 367 """ 362 # TODO: Link Invertor() and DmaxWindow so window updates when recalculated363 368 from dmax import DmaxWindow 364 369 self.dmaxWindow = DmaxWindow(self._calculator, self.getNFunc(), self) … … 423 428 ###################################################################### 424 429 # Thread Creators 425 426 # TODO: Move to individual class(?)427 430 428 431 def startThreadAll(self): … … 535 538 self.model.setItem(WIDGETS.W_COMP_TIME, 536 539 QtGui.QStandardItem(str(elapsed))) 537 self.PrTabWidget.setCurrentIndex(0)538 540 if message: 539 541 logging.info(message) … … 557 559 # Show result on control panel 558 560 559 # TODO: Connect self._calculator to GUI - two-to-one connection possible?560 561 self.model.setItem(WIDGETS.W_RG, QtGui.QStandardItem(str(pr.rg(out)))) 561 562 self.model.setItem(WIDGETS.W_I_ZERO, … … 563 564 self.model.setItem(WIDGETS.W_BACKGROUND_INPUT, 564 565 QtGui.QStandardItem("{:.3f}".format(pr.est_bck))) 565 self.model.setItem(WIDGETS.W_BACKGROUND_OUTPUT, 566 QtGui.QStandardItem(str(pr.background)))566 self.model.setItem(WIDGETS.W_BACKGROUND_OUTPUT, QtGui.QStandardItem( 567 str("{:.3g}".format(pr.background)))) 567 568 self.model.setItem(WIDGETS.W_CHI_SQUARED, 568 569 QtGui.QStandardItem(str(pr.chi2[0]))) … … 576 577 QtGui.QStandardItem(str(pr.get_pos_err(out, cov)))) 577 578 578 # Display results tab579 self.PrTabWidget.setCurrentIndex(1)580 579 # Save Pr invertor 581 580 self._calculator = pr -
src/sas/qtgui/Perspectives/Inversion/dmax.py
r7f5196e r477c473 76 76 self.closeButton.clicked.connect(self.close) 77 77 78 self.dependentVariable.currentIndexChanged.connect(self.dVChanged) 79 78 80 self.model.itemChanged.connect(self.modelChanged) 79 81 … … 101 103 self.mapper.toFirst() 102 104 103 def modelChanged(self, item): 105 def dVChanged(self): 106 self.modelChanged() 107 108 def modelChanged(self): 104 109 if not self.mapper: 105 110 return
Note: See TracChangeset
for help on using the changeset viewer.