Ignore:
File:
1 edited

Legend:

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

    r53c771e r3e8dee3  
    1818#from PyQt5 import QtWebEngineWidgets 
    1919 
    20 from sasmodels import product 
    2120from sasmodels import generate 
    2221from sasmodels import modelinfo 
     
    152151    def data(self, value): 
    153152        """ data setter """ 
    154         # Value is either a list of indices for batch fitting or a simple index 
    155         # for standard fitting. Assure we have a list, regardless. 
    156153        if isinstance(value, list): 
    157154            self.is_batch_fitting = True 
     
    167164 
    168165        # Update logics with data items 
    169         # Logics.data contains only a single Data1D/Data2D object 
    170166        self.logic.data = GuiUtils.dataFromItem(value[0]) 
    171167 
     
    173169        self.is2D = True if isinstance(self.logic.data, Data2D) else False 
    174170 
    175         # Let others know we're full of data now 
    176171        self.data_is_loaded = True 
    177172 
     
    353348        self.chk2DView.setVisible(False) 
    354349        self.chkMagnetism.setEnabled(self.is2D) 
    355         self.tabFitting.setTabEnabled(TAB_MAGNETISM, self.is2D) 
    356350        # Combo box or label for file name" 
    357351        if self.is_batch_fitting: 
     
    12881282        structure_module = generate.load_kernel_module(structure_factor) 
    12891283        structure_parameters = modelinfo.make_parameter_table(getattr(structure_module, 'parameters', [])) 
    1290         structure_kernel = self.models[structure_factor]() 
    1291  
    1292         self.kernel_module._model_info = product.make_product_info(self.kernel_module._model_info, structure_kernel._model_info) 
    12931284 
    12941285        new_rows = FittingUtilities.addSimpleParametersToModel(structure_parameters, self.is2D) 
Note: See TracChangeset for help on using the changeset viewer.