Changeset 0eff615 in sasview for src/sas/qtgui/Perspectives/Fitting
- Timestamp:
- Sep 6, 2018 5:18:50 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:
- 6da3e3d
- Parents:
- c1cfa80
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
reef298d4 r0eff615 47 47 from sas.qtgui.Perspectives.Fitting.MultiConstraint import MultiConstraint 48 48 from sas.qtgui.Perspectives.Fitting.ReportPageLogic import ReportPageLogic 49 50 49 51 50 … … 2935 2934 # first - regular params 2936 2935 param_list = [] 2936 2937 param_list.append(['model_name', str(self.cbModel.currentText())]) 2937 2938 def gatherParams(row): 2938 2939 """ … … 3021 3022 if lines[0] != 'sasview_parameter_values': 3022 3023 return False 3023 for line in lines[1:-1]: 3024 3025 model = lines[1].split(',') 3026 3027 if model[0] != 'model_name': 3028 return False 3029 3030 context['model_name'] = [model[1]] 3031 for line in lines[2:-1]: 3024 3032 if len(line) != 0: 3025 3033 item = line.split(',') … … 3047 3055 except IndexError: 3048 3056 pass 3057 3058 if str(self.cbModel.currentText()) != str(context['model_name'][0]): 3059 msg = QtWidgets.QMessageBox() 3060 msg.setIcon(QtWidgets.QMessageBox.Information) 3061 msg.setText("The model in the clipboard is not the same as the currently loaded model. \ 3062 Not all parameters saved may paste correctly.") 3063 msg.setStandardButtons(QtWidgets.QMessageBox.Ok | QtWidgets.QMessageBox.Cancel) 3064 result = msg.exec_() 3065 if result == QtWidgets.QMessageBox.Ok: 3066 pass 3067 else: 3068 return 3049 3069 3050 3070 self.updateFullModel(context) … … 3085 3105 param_repr = GuiUtils.formatNumber(param_dict[param_name][3+ioffset], high=True) 3086 3106 self._model_model.item(row, 3+ioffset).setText(param_repr) 3107 self.setFocus() 3108 3087 3109 3088 3110 # block signals temporarily, so we don't end up … … 3091 3113 self.iterateOverModel(updateFittedValues) 3092 3114 self._model_model.blockSignals(False) 3115 3093 3116 3094 3117 def updateFullPolyModel(self, param_dict): … … 3135 3158 param_repr = GuiUtils.formatNumber(param_dict[param_name][5+ioffset], high=True) 3136 3159 self._poly_model.item(row, 5+ioffset).setText(param_repr) 3160 self.setFocus() 3137 3161 3138 3162 # block signals temporarily, so we don't end up … … 3142 3166 self._poly_model.blockSignals(False) 3143 3167 3144
Note: See TracChangeset
for help on using the changeset viewer.