Changeset 6ca0da0 in sasview for src/sas/qtgui/Perspectives/Fitting
- Timestamp:
- Feb 13, 2018 9:08:33 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- c736154
- Parents:
- 731efec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/ConstraintWidget.py
r731efec r6ca0da0 1 import os2 import sys3 1 import logging 4 2 … … 141 139 142 140 # Single fitter for the simultaneous run 143 sim_fitter = Fit()144 sim_fitter.fitter_id = self.page_id141 fitter = Fit() 142 fitter.fitter_id = self.page_id 145 143 146 144 # Notify the parent about fitting started … … 151 149 page_ids = [] 152 150 fitter_id = 0 153 sim_fitter =[sim_fitter]151 sim_fitter_list=[fitter] 154 152 # Prepare the fitter object 155 153 try: … … 159 157 # No such tab! 160 158 return 161 sim_fitter , fitter_id = tab_object.prepareFitters(fitter=sim_fitter[0], fit_id=fitter_id)159 sim_fitter_list, fitter_id = tab_object.prepareFitters(fitter=sim_fitter_list[0], fit_id=fitter_id) 162 160 page_ids.append([tab_object.page_id]) 163 except ValueError as ex:161 except ValueError: 164 162 # No parameters selected in one of the tabs 165 163 no_params_msg = "Fitting can not be performed.\n" +\ 166 164 "Not all tabs chosen for fitting have parameters selected for fitting." 167 reply =QtWidgets.QMessageBox.question(self,168 169 170 165 QtWidgets.QMessageBox.question(self, 166 'Warning', 167 no_params_msg, 168 QtWidgets.QMessageBox.Ok) 171 169 172 170 return … … 189 187 # new fit thread object 190 188 calc_fit = FitThread(handler=handler, 191 fn=sim_fitter ,189 fn=sim_fitter_list, 192 190 batch_inputs=batch_inputs, 193 191 batch_outputs=batch_outputs, … … 389 387 # Select for fitting 390 388 param_string = "Fit Page " if num_rows==1 else "Fit Pages " 391 to_string = "to its current value" if num_rows==1 else "to their current values"392 389 393 390 self.actionSelect = QtWidgets.QAction(self) … … 435 432 # Select for fitting 436 433 param_string = "constraint " if num_rows==1 else "constraints " 437 to_string = "to its current value" if num_rows==1 else "to their current values"438 434 439 435 self.actionSelect = QtWidgets.QAction(self)
Note: See TracChangeset
for help on using the changeset viewer.