Changes in / [8e2cd79:04972ea] in sasview
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
installers/sasview_qt5_osx.spec
r2ae3edb r46f59ba 54 54 datas.append(('../src/sas/logger_config.py','.')) 55 55 datas.append(('../src/sas/logging.ini','.')) 56 datas.append(('../src/sas/sasview/custom_config.py','sas/sasview')) 57 datas.append(('../src/sas/sasview/local_config.py','sas/sasview')) 56 58 57 59 # pyinstaller gets mightily confused by upper/lower case, -
src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py
r8e2cd79 r8e2cd79 148 148 item.append([item1, item2, item4, item5, item6]) 149 149 return item 150 151 def markParameterDisabled(model, row): 152 """Given the QModel row number, format to show it is not available for fitting""" 153 154 # If an error column is present, there are a total of 6 columns. 155 items = [model.item(row, c) for c in range(6)] 156 157 model.blockSignals(True) 158 159 for item in items: 160 if item is None: 161 continue 162 item.setEditable(False) 163 item.setCheckable(False) 164 165 item = items[0] 166 167 font = QtGui.QFont() 168 font.setItalic(True) 169 item.setFont(font) 170 item.setForeground(QtGui.QBrush(QtGui.QColor(100, 100, 100))) 171 item.setToolTip("This parameter cannot be fitted.") 172 173 model.blockSignals(False) 150 174 151 175 def addCheckedListToModel(model, param_list): -
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r8e2cd79 r8e2cd79 14 14 from PyQt5 import QtWidgets 15 15 16 from sasmodels import product17 16 from sasmodels import generate 18 17 from sasmodels import modelinfo 19 18 from sasmodels.sasview_model import load_standard_models 19 from sasmodels.sasview_model import MultiplicationModel 20 20 from sasmodels.weights import MODELS as POLYDISPERSITY_MODELS 21 21 … … 1404 1404 param_dict = self.paramDictFromResults(res) 1405 1405 1406 if param_dict is None: 1407 return 1408 1406 1409 elapsed = result[1] 1407 1410 if self.calc_fit._interrupting: … … 1645 1648 return 1646 1649 1650 def iterateOverMagnetModel(func): 1651 """ 1652 Take func and throw it inside the magnet model row loop 1653 """ 1654 for row_i in range(self._magnet_model.rowCount()): 1655 func(row_i) 1656 1647 1657 def updateFittedValues(row): 1648 1658 # Utility function for main model update … … 1961 1971 structure_module = generate.load_kernel_module(structure_factor) 1962 1972 structure_parameters = modelinfo.make_parameter_table(getattr(structure_module, 'parameters', [])) 1973 1963 1974 structure_kernel = self.models[structure_factor]() 1964 1965 self.kernel_module._model_info = product.make_product_info(self.kernel_module._model_info, structure_kernel._model_info) 1975 form_kernel = self.kernel_module 1976 1977 self.kernel_module = MultiplicationModel(form_kernel, structure_kernel) 1966 1978 1967 1979 new_rows = FittingUtilities.addSimpleParametersToModel(structure_parameters, self.is2D) 1968 1980 for row in new_rows: 1969 1981 self._model_model.appendRow(row) 1982 # disable fitting of parameters not listed in self.kernel_module (probably radius_effective) 1983 if row[0].text() not in self.kernel_module.params.keys(): 1984 row_num = self._model_model.rowCount() - 1 1985 FittingUtilities.markParameterDisabled(self._model_model, row_num) 1986 1970 1987 # Update the counter used for multishell display 1971 1988 self._last_model_row = self._model_model.rowCount()
Note: See TracChangeset
for help on using the changeset viewer.