Changeset 672c0e97 in sasview
- Timestamp:
- Oct 2, 2018 6:48:46 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:
- a98014ab
- Parents:
- bb3e54dc
- git-author:
- Piotr Rozyczko <piotr.rozyczko@…> (10/02/18 06:48:06)
- git-committer:
- Piotr Rozyczko <piotr.rozyczko@…> (10/02/18 06:48:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r9562a6b r672c0e97 106 106 Calc1DFinishedSignal = QtCore.pyqtSignal(dict) 107 107 Calc2DFinishedSignal = QtCore.pyqtSignal(dict) 108 109 MAGNETIC_MODELS = ['sphere', 'core_shell_sphere', 'core_multi_shell', 'cylinder', 'parallelepiped'] 108 110 109 111 def __init__(self, parent=None, data=None, tab_id=1): … … 423 425 self.chk2DView.setEnabled(False) 424 426 self.chk2DView.setVisible(False) 425 self.chkMagnetism.setEnabled( self.is2D)427 self.chkMagnetism.setEnabled(False) 426 428 self.tabFitting.setTabEnabled(TAB_MAGNETISM, self.chkMagnetism.isChecked()) 427 429 # Combo box or label for file name" … … 1009 1011 if not model: 1010 1012 return 1011 1013 self.chkMagnetism.setEnabled(self.is2D and model in self.MAGNETIC_MODELS) 1012 1014 # Reset parameters to fit 1013 1015 self.resetParametersToFit() … … 2186 2188 p_kernel = self.kernel_module 2187 2189 # need to reset multiplicity to get the right product 2188 p_kernel.multiplicity = p_kernel.multiplicity_info.number 2190 if p_kernel.is_multiplicity_model: 2191 p_kernel.multiplicity = p_kernel.multiplicity_info.number 2189 2192 2190 2193 p_pars_len = len(p_kernel._model_info.parameters.kernel_parameters) … … 3170 3173 self.cbStructureFactor.setEnabled(enabled) 3171 3174 3172 self.chkPolydispersity.setEnabled(enabled)3173 self.chkMagnetism.setEnabled(enabled)3174 self.chk2DView.setEnabled(enabled)3175 3176 3175 def enableInteractiveElements(self): 3177 3176 """
Note: See TracChangeset
for help on using the changeset viewer.