Changeset 73fb503 in sasview


Ignore:
Timestamp:
Mar 28, 2019 12:08:56 PM (6 months ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_opencl
Children:
c7e73e7
Parents:
b016f17
Message:

Allow for smearing selection on theory plots.

Location:
src/sas/qtgui/Perspectives/Fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    rb8bdbcc r73fb503  
    20392039        if not self.data_is_loaded: 
    20402040            self.createDefaultDataset() 
     2041            self.smearing_widget.updateData(self.data) 
    20412042        self.calculateQGridForModel() 
    20422043 
  • src/sas/qtgui/Perspectives/Fitting/SmearingWidget.py

    re900a47 r73fb503  
    115115        Update control elements based on data and model passed 
    116116        """ 
     117        # retain the index 
     118        cur_index = self.cbSmearing.currentIndex() 
    117119        self.cbSmearing.clear() 
    118120        self.cbSmearing.addItem("None") 
     
    123125        model = self.kernel_model 
    124126        self.updateKernelModel(model) 
     127        # already has the required setup so modify the index 
     128        self.cbSmearing.setCurrentIndex(cur_index) 
    125129 
    126130    def updateKernelModel(self, kernel_model=None): 
Note: See TracChangeset for help on using the changeset viewer.