Changeset e5ae812 in sasview for src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
- Timestamp:
- Nov 13, 2018 7:25:48 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:
- baeac95
- Parents:
- 133812c7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r133812c7 re5ae812 1952 1952 Emits plotRequestedSignal for all plots found in the given model under the provided item name. 1953 1953 """ 1954 fitpage_name = "" if self.tab_id is None else "M"+str(self.tab_id)1954 fitpage_name = self.kernel_module.name 1955 1955 plots = GuiUtils.plotsFromFilename(item_name, item_model) 1956 1956 # Has the fitted data been shown? … … 3524 3524 param_list.append(['data_name', filenames]) 3525 3525 param_list.append(['data_id', data_ids]) 3526 param_list.append(['tab_name', self.modelName()]) 3526 3527 # option tab 3527 3528 param_list.append(['q_range_min', str(self.q_range_min)]) … … 3596 3597 except: 3597 3598 pass 3598 3599 param_list.append([param_name, param_checked, param_value, param_error, param_min, param_max]) 3599 # Do we have any constraints on this parameter? 3600 constraint = self.getConstraintForRow(row) 3601 cons = () 3602 if constraint is not None: 3603 value = constraint.value 3604 func = constraint.func 3605 cons = (value, func) 3606 3607 param_list.append([param_name, param_checked, param_value, param_error, param_min, param_max, cons]) 3600 3608 3601 3609 def gatherPolyParams(row): … … 3705 3713 self.updateMultiplicityCombo(multip) 3706 3714 3715 if 'tab_name' in line_dict.keys(): 3716 self.kernel_module.name = line_dict['tab_name'][0] 3707 3717 if 'polydisperse_params' in line_dict.keys(): 3708 3718 self.chkPolydispersity.setChecked(line_dict['polydisperse_params'][0]=='True') … … 3827 3837 ioffset = 0 3828 3838 joffset = 0 3829 if len(param_dict[param_name])> 4:3839 if len(param_dict[param_name])>5: 3830 3840 # error values are not editable - no need to update 3831 3841 ioffset = 1 … … 3840 3850 except: 3841 3851 pass 3852 3853 # constraints 3854 cons = param_dict[param_name][4+ioffset] 3855 if cons is not None and cons: 3856 value = cons[0] 3857 function = cons[1] 3858 constraint = Constraint() 3859 constraint.value = value 3860 constraint.func = function 3861 self.addConstraintToRow(constraint=constraint, row=row) 3842 3862 3843 3863 self.setFocus()
Note: See TracChangeset
for help on using the changeset viewer.