Ignore:
File:
1 edited

Legend:

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

    r5d1440e1 rf7d14a1  
    146146    def data(self, value): 
    147147        """ data setter """ 
     148        # Value is either a list of indices for batch fitting or a simple index 
     149        # for standard fitting. Assure we have a list, regardless. 
    148150        if isinstance(value, list): 
    149151            self.is_batch_fitting = True 
     
    159161 
    160162        # Update logics with data items 
     163        # Logics.data contains only a single Data1D/Data2D object 
    161164        self.logic.data = GuiUtils.dataFromItem(value[0]) 
    162165 
     
    164167        self.is2D = True if isinstance(self.logic.data, Data2D) else False 
    165168 
     169        # Let others know we're full of data now 
    166170        self.data_is_loaded = True 
    167171 
     
    343347        self.chk2DView.setVisible(False) 
    344348        self.chkMagnetism.setEnabled(self.is2D) 
     349        self.tabFitting.setTabEnabled(TAB_MAGNETISM, self.is2D) 
    345350        # Combo box or label for file name" 
    346351        if self.is_batch_fitting: 
     
    354359        # Similarly on other tabs 
    355360        self.options_widget.setEnablementOnDataLoad() 
     361 
     362        # Reload the model 
     363        self.onSelectModel() 
    356364 
    357365        # Smearing tab 
Note: See TracChangeset for help on using the changeset viewer.