Changes in src/sas/qtgui/Perspectives/Fitting/FittingWidget.py [dc71408:b87dc1a] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
rdc71408 rb87dc1a 15 15 from PyQt5 import QtWidgets 16 16 17 from sasmodels import product18 17 from sasmodels import generate 19 18 from sasmodels import modelinfo 20 19 from sasmodels.sasview_model import load_standard_models 20 from sasmodels.sasview_model import MultiplicationModel 21 21 from sasmodels.weights import MODELS as POLYDISPERSITY_MODELS 22 22 … … 1961 1961 structure_module = generate.load_kernel_module(structure_factor) 1962 1962 structure_parameters = modelinfo.make_parameter_table(getattr(structure_module, 'parameters', [])) 1963 1963 1964 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) 1965 form_kernel = self.kernel_module 1966 1967 self.kernel_module = MultiplicationModel(form_kernel, structure_kernel) 1966 1968 1967 1969 new_rows = FittingUtilities.addSimpleParametersToModel(structure_parameters, self.is2D) 1968 1970 for row in new_rows: 1969 1971 self._model_model.appendRow(row) 1972 # disable fitting of parameters not listed in self.kernel_module (probably radius_effective) 1973 if row[0].text() not in self.kernel_module.params.keys(): 1974 row_num = self._model_model.rowCount() - 1 1975 FittingUtilities.markParameterDisabled(self._model_model, row_num) 1976 1970 1977 # Update the counter used for multishell display 1971 1978 self._last_model_row = self._model_model.rowCount()
Note: See TracChangeset
for help on using the changeset viewer.