Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataExplorer.py

    r8ac3551 re90988c  
    473473        Notify the gui manager about the new perspective chosen. 
    474474        """ 
    475         self.communicator.perspectiveChangedSignal.emit(self.cbFitting.itemText(index)) 
     475        self.communicator.perspectiveChangedSignal.emit(self.cbFitting.currentText()) 
    476476        self.chkBatch.setEnabled(self.parent.perspective().allowBatch()) 
    477477 
    478     def displayFile(self, filename=None, is_data=True): 
     478    def displayData(self, data_list): 
    479479        """ 
    480480        Forces display of charts for the given filename 
    481481        """ 
    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 
    483490        # Now query the model item for available plots 
    484491        plots = GuiUtils.plotsFromFilename(filename, model) 
     
    499506        if new_plots: 
    500507            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) 
    512508 
    513509    def addDataPlot2D(self, plot_set, item): 
     
    10311027        pass 
    10321028 
    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  
    10431029    def loadComplete(self, output): 
    10441030        """ 
Note: See TracChangeset for help on using the changeset viewer.