Changeset d7b7156 in sasview for theoryview/perspectives/theory
- Timestamp:
- Oct 22, 2010 5:51:22 PM (14 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 7406040
- Parents:
- 4628e31
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
theoryview/perspectives/theory/model_panel.py
rfb59ed9 rd7b7156 168 168 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 169 169 ix += 1 170 values = wx.StaticText(self, -1, 'Sigma (STD)') 171 values.SetToolTipString("Polydispersity multiplied by the value of the original parameter.") 172 self.sizer4_4.Add(values,( iy, ix),(1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 170 values = wx.StaticText(self, -1, 'Sigma [A]') 171 values.SetToolTipString(\ 172 "Sigma(STD) in the A unit; the standard deviation from the mean value.") 173 174 self.sizer4_4.Add(values,( iy, ix),(1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 175 0) 173 176 174 177 ix += 1 175 178 npts = wx.StaticText(self, -1, 'Npts') 176 npts.SetToolTipString("Number of points for weighting.") 179 npts.SetToolTipString("Number of sampling points for the numerical\n\ 180 integration over the distribution function.") 177 181 self.sizer4_4.Add(npts,( iy, ix),(1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 178 182 ix += 1 179 183 nsigmas = wx.StaticText(self, -1, 'Nsigmas') 180 nsigmas.SetToolTipString("Number of sigmas between which the range of the distribution function will be used for weighting. The value '3' covers 99.5% for Gaussian distribution function.") 181 self.sizer4_4.Add(nsigmas,( iy, ix),(1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 182 184 nsigmas.SetToolTipString(" Number of sigmas between which the range\n\ 185 of the distribution function will be used for weighting. \n\ 186 The value '3' covers 99.5% for Gaussian distribution \n\ 187 function.") 188 self.sizer4_4.Add(nsigmas,( iy, ix),(1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 189 0) 190 183 191 for item in self.model.dispersion.keys(): 184 192 if not item in self.model.orientation_params: 185 193 self.disp_cb_dict[item]= None 194 name0="Distribution of " + item 186 195 name1=item+".width" 187 196 name2=item+".npts" … … 191 200 if p=="width": 192 201 ix = 0 193 name = wx.StaticText(self, -1, name 1)202 name = wx.StaticText(self, -1, name0) 194 203 self.sizer4_4.Add( name,( iy, ix),(1,1), 195 204 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) … … 198 207 ctl1 = self.ModelTextCtrl(self, -1, size=(_BOX_WIDTH,20), 199 208 style=wx.TE_PROCESS_ENTER) 200 ctl1.SetToolTipString("Polydispersity multiplied by the value of the '%s'."%item) 209 ctl1.SetToolTipString("Absolute Sigma: \n\ 210 1) It is the STD (ratio*mean) of '%s' distribution.\n \ 211 2) It should not exceed Mean/(2*Nsigmas)." %item) 201 212 ctl1.SetValue(str (format_number(value))) 202 213 self.sizer4_4.Add(ctl1, (iy,ix),(1,1), wx.EXPAND) … … 228 239 self.fixed_param.append([None,name3, Tctl2, 229 240 None,None, None, None,None]) 241 first_orient = True 230 242 for item in self.model.dispersion.keys(): 231 243 if item in self.model.orientation_params: 232 244 self.disp_cb_dict[item]= None 245 name0="Distribution of " + item 233 246 name1=item+".width" 234 247 name2=item+".npts" … … 238 251 if p=="width": 239 252 ix = 0 240 name = wx.StaticText(self, -1, name 1)253 name = wx.StaticText(self, -1, name0) 241 254 self.sizer4_4.Add( name,( iy, ix),(1,1), 242 255 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) … … 249 262 ctl1 = self.ModelTextCtrl(self, -1, size=(_BOX_WIDTH,20), 250 263 style=wx.TE_PROCESS_ENTER) 251 ctl1.SetToolTipString("Polydispersity multiplied by the value of '%s'."%item) 264 ctl1.SetToolTipString("Absolute Sigma: \n\ 265 1) It is the STD (ratio*mean) of '%s' distribution."% \ 266 item) 252 267 ctl1.SetValue(str (format_number(value))) 253 268 if not self.enable2D: … … 255 270 ctl1.Disable() 256 271 else: 272 # in the case of 2D and angle parameter 273 if first_orient: 274 values.SetLabel('Sigma [A (or deg)]') 275 values.SetToolTipString(\ 276 "Sigma(STD) in the A or deg(for angles) unit;\n\ 277 the standard deviation from the mean value.") 278 first_orient = False 257 279 ctl1.Show(True) 258 280 ctl1.Enable() … … 303 325 self.orientation_params_disp.append([None,name3, Tctl2, 304 326 None,None, None, None,None]) 305 327 306 328 msg = " Selected Distribution: Gaussian" 307 329 wx.PostEvent(self.parent, StatusEvent( status= msg ))
Note: See TracChangeset
for help on using the changeset viewer.