Changeset 04f775d in sasview for src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
- Timestamp:
- Sep 6, 2018 9:34:38 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 04ce9ac
- Parents:
- dda8f16
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
rf84d793 r04f775d 2050 2050 2051 2051 # Update the QModel 2052 new_rows = FittingUtilities.addParametersToModel(self.model_parameters, self.kernel_module, self.is2D) 2053 2054 for row in new_rows: 2055 self._model_model.appendRow(row) 2052 FittingUtilities.addParametersToModel( 2053 self._model_model, 2054 self.lstParams, 2055 self.model_parameters, 2056 self.kernel_module, 2057 self.is2D) 2058 2056 2059 # Update the counter used for multishell display 2057 2060 self._last_model_row = self._model_model.rowCount() … … 2071 2074 self.kernel_module = MultiplicationModel(form_kernel, structure_kernel) 2072 2075 2073 new_rows = FittingUtilities.addSimpleParametersToModel(structure_parameters, self.is2D) 2074 for row in new_rows: 2075 self._model_model.appendRow(row) 2076 # disable fitting of parameters not listed in self.kernel_module (probably radius_effective) 2077 if row[0].text() not in self.kernel_module.params.keys(): 2078 row_num = self._model_model.rowCount() - 1 2079 FittingUtilities.markParameterDisabled(self._model_model, row_num) 2076 # Update the QModel 2077 FittingUtilities.addSimpleParametersToModel( 2078 self._model_model, 2079 self.lstParams, 2080 structure_parameters, 2081 self.is2D) 2082 2083 # Any parameters removed from the structure factor when producing the product model, e.g. radius_effective, must 2084 # be disabled (greyed out, etc.) 2085 for r in range(self._last_model_row, self._model_model.rowCount()): 2086 param_name = self._model_model.item(r, 0).text() 2087 if param_name not in self.kernel_module.params.keys(): 2088 FittingUtilities.markParameterDisabled(self._model_model, r) 2080 2089 2081 2090 # Update the counter used for multishell display
Note: See TracChangeset
for help on using the changeset viewer.