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