Changeset b0b09b9 in sasview for src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py
- Timestamp:
- Oct 26, 2017 3:13:05 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 895e7359
- Parents:
- def64a0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py
- Property mode changed from 100644 to 100755
rd0dfcb2 rb0b09b9 44 44 Returns a list of all multi-shell parameters in 'model' 45 45 """ 46 return list( filter(lambda par: "[" in par.name, model.iq_parameters))46 return list([par for par in model.iq_parameters if "[" in par.name]) 47 47 48 48 def getMultiplicity(model): … … 156 156 """ 157 157 for i, item in enumerate(model_header_captions): 158 model.setHeaderData(i, QtCore.Qt.Horizontal, QtCore.QVariant(item)) 158 #model.setHeaderData(i, QtCore.Qt.Horizontal, QtCore.QVariant(item)) 159 model.setHeaderData(i, QtCore.Qt.Horizontal, item) 159 160 160 161 model.header_tooltips = model_header_tooltips … … 167 168 model_header_error_captions.insert(2, header_error_caption) 168 169 for i, item in enumerate(model_header_error_captions): 169 model.setHeaderData(i, QtCore.Qt.Horizontal, QtCore.QVariant(item))170 model.setHeaderData(i, QtCore.Qt.Horizontal, item) 170 171 171 172 model_header_error_tooltips = model_header_tooltips … … 178 179 """ 179 180 for i, item in enumerate(poly_header_captions): 180 model.setHeaderData(i, QtCore.Qt.Horizontal, QtCore.QVariant(item))181 model.setHeaderData(i, QtCore.Qt.Horizontal, item) 181 182 182 183 model.header_tooltips = poly_header_tooltips … … 190 191 poly_header_error_captions.insert(2, header_error_caption) 191 192 for i, item in enumerate(poly_header_error_captions): 192 model.setHeaderData(i, QtCore.Qt.Horizontal, QtCore.QVariant(item))193 model.setHeaderData(i, QtCore.Qt.Horizontal, item) 193 194 194 195 poly_header_error_tooltips = poly_header_tooltips … … 202 203 multishell_parameters = getIterParams(parameters) 203 204 204 for i in xrange(index):205 for i in range(index): 205 206 for par in multishell_parameters: 206 207 # Create the name: <param>[<i>], e.g. "sld1" for parameter "sld[n]" … … 396 397 397 398 def binary_encode(i, digits): 398 return [i >> d & 1 for d in xrange(digits)]399 return [i >> d & 1 for d in range(digits)] 399 400 400 401 def getWeight(data, is2d, flag=None):
Note: See TracChangeset
for help on using the changeset viewer.