Changes in src/sas/qtgui/MainWindow/DataExplorer.py [e90988c:8ac3551] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
re90988c r8ac3551 473 473 Notify the gui manager about the new perspective chosen. 474 474 """ 475 self.communicator.perspectiveChangedSignal.emit(self.cbFitting. currentText())475 self.communicator.perspectiveChangedSignal.emit(self.cbFitting.itemText(index)) 476 476 self.chkBatch.setEnabled(self.parent.perspective().allowBatch()) 477 477 478 def display Data(self, data_list):478 def displayFile(self, filename=None, is_data=True): 479 479 """ 480 480 Forces display of charts for the given filename 481 481 """ 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 482 model = self.model if is_data else self.theory_model 490 483 # Now query the model item for available plots 491 484 plots = GuiUtils.plotsFromFilename(filename, model) … … 506 499 if new_plots: 507 500 self.plotData(new_plots) 501 502 def displayData(self, data_list): 503 """ 504 Forces display of charts for the given data set 505 """ 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 from 509 # the data explorer indices. 510 filename = plot_to_show.filename 511 self.displayFile(filename=filename, is_data=plot_to_show.is_data) 508 512 509 513 def addDataPlot2D(self, plot_set, item): … … 1027 1031 pass 1028 1032 1033 def onAnalysisUpdate(self, new_perspective=""): 1034 """ 1035 Update the perspective combo index based on passed string 1036 """ 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 pass 1042 1029 1043 def loadComplete(self, output): 1030 1044 """
Note: See TracChangeset
for help on using the changeset viewer.