Changes in src/sas/qtgui/MainWindow/DataExplorer.py [8ac3551:e90988c] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
r8ac3551 re90988c 473 473 Notify the gui manager about the new perspective chosen. 474 474 """ 475 self.communicator.perspectiveChangedSignal.emit(self.cbFitting. itemText(index))475 self.communicator.perspectiveChangedSignal.emit(self.cbFitting.currentText()) 476 476 self.chkBatch.setEnabled(self.parent.perspective().allowBatch()) 477 477 478 def display File(self, filename=None, is_data=True):478 def displayData(self, data_list): 479 479 """ 480 480 Forces display of charts for the given filename 481 481 """ 482 model = self.model if is_data else self.theory_model 482 plot_to_show = data_list[0] 483 484 # passed plot is used ONLY to figure out its title, 485 # so all the charts related by it can be pulled from 486 # the data explorer indices. 487 filename = plot_to_show.filename 488 model = self.model if plot_to_show.is_data else self.theory_model 489 483 490 # Now query the model item for available plots 484 491 plots = GuiUtils.plotsFromFilename(filename, model) … … 499 506 if new_plots: 500 507 self.plotData(new_plots) 501 502 def displayData(self, data_list):503 """504 Forces display of charts for the given data set505 """506 plot_to_show = data_list[0]507 # passed plot is used ONLY to figure out its title,508 # so all the charts related by it can be pulled from509 # the data explorer indices.510 filename = plot_to_show.filename511 self.displayFile(filename=filename, is_data=plot_to_show.is_data)512 508 513 509 def addDataPlot2D(self, plot_set, item): … … 1031 1027 pass 1032 1028 1033 def onAnalysisUpdate(self, new_perspective=""):1034 """1035 Update the perspective combo index based on passed string1036 """1037 assert new_perspective in Perspectives.PERSPECTIVES.keys()1038 self.cbFitting.blockSignals(True)1039 self.cbFitting.setCurrentIndex(self.cbFitting.findText(new_perspective))1040 self.cbFitting.blockSignals(False)1041 pass1042 1043 1029 def loadComplete(self, output): 1044 1030 """
Note: See TracChangeset
for help on using the changeset viewer.