Changes in src/sas/qtgui/Perspectives/Fitting/FittingWidget.py [5d1440e1:f7d14a1] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r5d1440e1 rf7d14a1 146 146 def data(self, value): 147 147 """ 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. 148 150 if isinstance(value, list): 149 151 self.is_batch_fitting = True … … 159 161 160 162 # Update logics with data items 163 # Logics.data contains only a single Data1D/Data2D object 161 164 self.logic.data = GuiUtils.dataFromItem(value[0]) 162 165 … … 164 167 self.is2D = True if isinstance(self.logic.data, Data2D) else False 165 168 169 # Let others know we're full of data now 166 170 self.data_is_loaded = True 167 171 … … 343 347 self.chk2DView.setVisible(False) 344 348 self.chkMagnetism.setEnabled(self.is2D) 349 self.tabFitting.setTabEnabled(TAB_MAGNETISM, self.is2D) 345 350 # Combo box or label for file name" 346 351 if self.is_batch_fitting: … … 354 359 # Similarly on other tabs 355 360 self.options_widget.setEnablementOnDataLoad() 361 362 # Reload the model 363 self.onSelectModel() 356 364 357 365 # Smearing tab
Note: See TracChangeset
for help on using the changeset viewer.