Changeset ec4a143 in sasview for src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
- Timestamp:
- Oct 29, 2018 4:59:44 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 7fb68060
- Parents:
- 722b7d6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r75906a1 rec4a143 1010 1010 Checks if the current model has magnetic scattering implemented 1011 1011 """ 1012 current_model = self.cbModel.currentText() 1013 return self.is2D and current_model in self.MAGNETIC_MODELS 1012 has_params = False 1013 if self.kernel_module: 1014 has_mag_params = len(self.kernel_module.magnetic_params) > 0 1015 return self.is2D and has_mag_params 1014 1016 1015 1017 def onSelectModel(self): … … 1025 1027 if not model: 1026 1028 return 1027 self.chkMagnetism.setEnabled(self.canHaveMagnetism())1028 self.tabFitting.setTabEnabled(TAB_MAGNETISM, self.chkMagnetism.isChecked() and self.canHaveMagnetism())1029 1029 1030 1030 # Reset parameters to fit … … 1164 1164 self.SASModelToQModel(model, structure_factor) 1165 1165 1166 # Enable magnetism checkbox for selected models 1167 self.chkMagnetism.setEnabled(self.canHaveMagnetism()) 1168 self.tabFitting.setTabEnabled(TAB_MAGNETISM, self.chkMagnetism.isChecked() and self.canHaveMagnetism()) 1169 1170 # Update column widths 1166 1171 for column, width in self.lstParamHeaderSizes.items(): 1167 1172 self.lstParams.setColumnWidth(column, width)
Note: See TracChangeset
for help on using the changeset viewer.