Changeset e4041a2 in sasview for src/sas/qtgui/Perspectives/Fitting
- Timestamp:
- Sep 9, 2018 3:32:42 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:
- fa3da01
- Parents:
- 5a96a72 (diff), 0dcb71d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- src/sas/qtgui/Perspectives/Fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r5a96a72 re4041a2 1841 1841 data_to_show = self.data if self.data_is_loaded else self.model_data 1842 1842 if data_to_show is not None: 1843 self.communicate.plotRequestedSignal.emit([data_to_show] )1843 self.communicate.plotRequestedSignal.emit([data_to_show], self.tab_id) 1844 1844 1845 1845 def onOptionsUpdate(self): … … 2351 2351 fitted_data.symbol = "Line" 2352 2352 self.createTheoryIndex(fitted_data) 2353 # Switch to the theory tab for user's glee 2354 self.communicate.changeDataExplorerTabSignal.emit(1) 2353 2355 2354 2356 def updateModelIndex(self, fitted_data): … … 2486 2488 2487 2489 if self.data_is_loaded: 2490 # delete any plots associated with the data that were not updated (e.g. to remove beta(Q), S_eff(Q)) 2488 2491 GuiUtils.deleteRedundantPlots(self.all_data[self.data_index], new_plots) 2492 pass 2489 2493 else: 2490 2494 # delete theory items for the model, in order to get rid of any redundant items, e.g. beta(Q), S_eff(Q) … … 3220 3224 param_value = str(self._model_model.item(row, 1).text()) 3221 3225 param_error = None 3226 param_min = None 3227 param_max = None 3222 3228 column_offset = 0 3223 3229 if self.has_error_column: 3224 3230 param_error = str(self._model_model.item(row, 2).text()) 3225 3231 column_offset = 1 3226 param_min = str(self._model_model.item(row, 2+column_offset).text()) 3227 param_max = str(self._model_model.item(row, 3+column_offset).text()) 3232 3233 try: 3234 param_min = str(self._model_model.item(row, 2+column_offset).text()) 3235 param_max = str(self._model_model.item(row, 3+column_offset).text()) 3236 except: 3237 pass 3238 3228 3239 param_list.append([param_name, param_checked, param_value, param_error, param_min, param_max]) 3229 3240 … … 3315 3326 3316 3327 # limits 3317 limit_lo = item[3] 3318 context[name].append(limit_lo) 3319 limit_hi = item[4] 3320 context[name].append(limit_hi) 3328 try: 3329 limit_lo = item[3] 3330 context[name].append(limit_lo) 3331 limit_hi = item[4] 3332 context[name].append(limit_hi) 3333 except: 3334 pass 3321 3335 3322 3336 # Polydisp … … 3377 3391 ioffset = 1 3378 3392 # min/max 3379 param_repr = GuiUtils.formatNumber(param_dict[param_name][2+ioffset], high=True) 3380 self._model_model.item(row, 2+ioffset).setText(param_repr) 3381 param_repr = GuiUtils.formatNumber(param_dict[param_name][3+ioffset], high=True) 3382 self._model_model.item(row, 3+ioffset).setText(param_repr) 3393 try: 3394 param_repr = GuiUtils.formatNumber(param_dict[param_name][2+ioffset], high=True) 3395 self._model_model.item(row, 2+ioffset).setText(param_repr) 3396 param_repr = GuiUtils.formatNumber(param_dict[param_name][3+ioffset], high=True) 3397 self._model_model.item(row, 3+ioffset).setText(param_repr) 3398 except: 3399 pass 3400 3383 3401 self.setFocus() 3402 3384 3403 3385 3404 -
src/sas/qtgui/Perspectives/Fitting/FittingLogic.py
r61f0c75 r5a96a72 220 220 return plots 221 221 222 def getScalarIntermediateResults(self, return_data): 223 """ 224 Returns a dict of scalar-only intermediate results from the return data. 225 """ 226 res = {} 227 for name, int_res in return_data["intermediate_results"].items(): 228 if isinstance(int_res, np.ndarray): 229 continue 230 res[name] = int_res 231 return res 232 222 233 def computeDataRange(self): 223 234 """
Note: See TracChangeset
for help on using the changeset viewer.