Ignore:
Timestamp:
Sep 13, 2017 6:24:34 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
3c8242c
Parents:
9909967
Message:

Startup time improvements - hiding expensive imports and such

File:
1 edited

Legend:

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

    r38eb433 rfef38e8  
    451451        model = self.model if plot_to_show.is_data else self.theory_model 
    452452        plots = GuiUtils.plotsFromFilename(filename, model) 
    453         _ = [self.plotData([(None, plot)]) for plot in plots] 
     453        for plot in plots: 
     454            plot_id = plot.id 
     455            if plot_id in self.active_plots.keys(): 
     456                self.active_plots[plot_id].replacePlot(plot_id, plot_to_show) 
     457            else: 
     458                self.plotData([(None, plot)]) 
    454459 
    455460    def addDataPlot2D(self, plot_set, item): 
Note: See TracChangeset for help on using the changeset viewer.