Changes in src/sas/qtgui/Perspectives/Fitting/FittingWidget.py [3e8dee3:53c771e] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r3e8dee3 r53c771e 18 18 #from PyQt5 import QtWebEngineWidgets 19 19 20 from sasmodels import product 20 21 from sasmodels import generate 21 22 from sasmodels import modelinfo … … 151 152 def data(self, value): 152 153 """ 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. 153 156 if isinstance(value, list): 154 157 self.is_batch_fitting = True … … 164 167 165 168 # Update logics with data items 169 # Logics.data contains only a single Data1D/Data2D object 166 170 self.logic.data = GuiUtils.dataFromItem(value[0]) 167 171 … … 169 173 self.is2D = True if isinstance(self.logic.data, Data2D) else False 170 174 175 # Let others know we're full of data now 171 176 self.data_is_loaded = True 172 177 … … 348 353 self.chk2DView.setVisible(False) 349 354 self.chkMagnetism.setEnabled(self.is2D) 355 self.tabFitting.setTabEnabled(TAB_MAGNETISM, self.is2D) 350 356 # Combo box or label for file name" 351 357 if self.is_batch_fitting: … … 1282 1288 structure_module = generate.load_kernel_module(structure_factor) 1283 1289 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) 1284 1293 1285 1294 new_rows = FittingUtilities.addSimpleParametersToModel(structure_parameters, self.is2D)
Note: See TracChangeset
for help on using the changeset viewer.