Changeset 1c699de in sasview for src/sas/sasgui/perspectives/fitting/basepage.py
- Timestamp:
- Aug 25, 2017 10:02:34 AM (7 years ago)
- Branches:
- master, 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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 9f703d0
- Parents:
- 968d67e
- git-author:
- Lewis O'Driscoll <lewis.o'driscoll@…> (08/25/17 09:59:32)
- git-committer:
- Lewis O'Driscoll <lewis.o'driscoll@…> (08/25/17 10:02:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
r914c49d5 r1c699de 2950 2950 if self.parameters: 2951 2951 2952 disp_params = [] 2953 for param in self.disp_list: 2954 p1, p2 = param.split('.') 2955 if p1 not in disp_params: 2956 disp_params.append(p1) 2957 2952 2958 for param in self.parameters: 2953 2959 content += param[1] # parameter name 2954 2960 content += tab 2961 if param[1] in disp_params: 2962 content += param[1] + ".width" 2963 content += tab 2955 2964 content += param[1] + "_err" 2956 2965 content += tab … … 2962 2971 content += param[2].GetValue() # value 2963 2972 content += tab 2973 if param[1] in disp_params: 2974 content += str(self.model.getParam(param[1] + '.width')) 2975 content += tab 2964 2976 content += param[4].GetValue() # error 2965 2977 content += tab … … 2990 3002 # Do it if params exist 2991 3003 if self.parameters: 3004 disp_params = [] 3005 for param in self.disp_list: 3006 p1, p2 = param.split('.') 3007 if p1 not in disp_params: 3008 disp_params.append(p1) 2992 3009 2993 3010 content += '{|' 2994 for param in self.parameters:3011 for param in (self.parameters + disp_params): 2995 3012 content += 'l|l|' 2996 3013 content += '}\hline' … … 3000 3017 content += param[1].replace('_', '\_') # parameter name 3001 3018 content += ' & ' 3019 if param[1] in disp_params: 3020 content += param[1].replace('_', '\_') + ".width" 3021 content += ' & ' 3002 3022 content += param[1].replace('_', '\_') + "\_err" 3003 3023 if index < len(self.parameters) - 1: … … 3010 3030 content += param[2].GetValue() # parameter value 3011 3031 content += ' & ' 3032 if param[1] in disp_params: 3033 content += str(self.model.getParam(param[1] + '.width')) 3034 content += ' & ' 3012 3035 content += param[4].GetValue() # parameter error 3013 3036 if index < len(self.parameters) - 1:
Note: See TracChangeset
for help on using the changeset viewer.