Changeset 01b6bd0 in sasview
- Timestamp:
- Feb 25, 2011 7:40:28 AM (13 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:
- 97ec26b
- Parents:
- 59b9b675
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r18cdddb r01b6bd0 2252 2252 self.disp_box.Hide() 2253 2253 self.sizer4_4.Clear(True) 2254 model_disp = wx.StaticText(self, -1, 'No PolyDispersity for this model') 2254 text = "No polydispersity available for this model" 2255 model_disp = wx.StaticText(self, -1, text) 2255 2256 self.sizer4_4.Add(model_disp,( iy, ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 2256 2257 self.sizer4_4.Layout() -
sansview/perspectives/fitting/fitpage.py
r982e953 r01b6bd0 478 478 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 479 479 ix += 1 480 values = wx.StaticText(self, -1, 'Sigma [A]') 481 values.SetToolTipString(\ 482 "Sigma(STD) in the A unit; the standard deviation from the mean value.") 480 values = wx.StaticText(self, -1, 'PD[ratio] ') 481 polytext = "Polydispersity (= STD/mean); " 482 polytext += "the standard deviation over the mean value." 483 values.SetToolTipString(polytext) 483 484 484 485 self.sizer4_4.Add(values,( iy, ix),(1,1), wx.EXPAND|wx.ADJUST_MINSIZE, … … 513 514 of the distribution function will be used for weighting. \n\ 514 515 The value '3' covers 99.5% for Gaussian distribution \n\ 515 function. ")516 function. Note: Not recommended to change this value.") 516 517 self.sizer4_4.Add(nsigmas,( iy, ix),(1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 517 518 0) … … 547 548 ctl1 = self.ModelTextCtrl(self, -1, size=(_BOX_WIDTH,20) 548 549 ,style=wx.TE_PROCESS_ENTER) 549 ctl1.SetToolTipString("Absolute Sigma: \n\ 550 1) It is the STD (ratio*mean) of '%s' distribution.\n \ 551 2) It should not exceed Mean/(2*Nsigmas)." %item) 550 ctl1.SetLabel('PD[ratio]') 551 poly_text = "Polydispersity (STD/mean) of %s\n" % item 552 poly_text += "STD: the standard deviation" 553 poly_text += " from the mean value." 554 ctl1.SetToolTipString(poly_text) 552 555 ctl1.SetValue(str (format_number(value))) 553 556 self.sizer4_4.Add(ctl1, (iy,ix),(1,1),wx.EXPAND) … … 661 664 ctl1 = self.ModelTextCtrl(self, -1, size=(_BOX_WIDTH, 662 665 20),style=wx.TE_PROCESS_ENTER) 663 ctl1.SetToolTipString("Absolute Sigma: \n\ 664 1) It is the STD (ratio*mean) of '%s' distribution."% \ 665 item) 666 poly_tip = "Absolute Sigma for %s." % item 667 ctl1.SetToolTipString(poly_tip) 666 668 ctl1.SetValue(str (format_number(value))) 667 669 if self.data.__class__.__name__ =="Data2D": 668 670 if first_orient: 669 values.SetLabel('Sigma [A (or deg)]') 670 values.SetToolTipString(\ 671 "Sigma(STD) in the A or deg(for angles) unit;\n\ 672 the standard deviation from the mean value.") 671 values.SetLabel('PD[ratio], Sig[deg]') 672 poly_text = "PD(polydispersity for lengths):\n" 673 poly_text += "It should be a value between" 674 poly_text += "0 and 1\n" 675 poly_text += "Sigma for angles: \n" 676 poly_text += "It is the STD (ratio*mean)" 677 poly_text += " of the distribution.\n " % item 678 679 values.SetToolTipString(poly_text) 673 680 first_orient = False 674 681 ctl1.Show(True) -
theoryview/perspectives/theory/basepage.py
rf53444be r01b6bd0 1607 1607 self.disp_box.Hide() 1608 1608 self.sizer4_4.Clear(True) 1609 model_disp = wx.StaticText(self, -1, 'No PolyDispersity for this model') 1609 text = "No polydispersity available for this model" 1610 model_disp = wx.StaticText(self, -1, text) 1610 1611 self.sizer4_4.Add(model_disp,(iy, ix), (1,1), 1611 1612 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) -
theoryview/perspectives/theory/model_panel.py
r18cdddb r01b6bd0 160 160 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 161 161 ix += 1 162 values = wx.StaticText(self, -1, 'Sigma [A]') 163 hint_msg = "Sigma(STD) in the A unit; the standard " 164 hint_msg += "deviation from the mean value." 165 values.SetToolTipString(hint_msg) 162 values = wx.StaticText(self, -1, 'PD[ratio] ') 163 polytext = "Polydispersity (= STD/mean); " 164 polytext += "the standard deviation over the mean value." 165 values.SetToolTipString(polytext) 166 166 167 self.sizer4_4.Add(values, (iy, ix), (1, 1), 167 168 wx.EXPAND|wx.ADJUST_MINSIZE, 0) … … 178 179 hint_msg += "of the distribution function will be used for " 179 180 hint_msg += "weighting.\n The value '3' covers 99.5% for Gaussian " 180 hint_msg += " distribution \n function." 181 hint_msg += " distribution \n function. " 182 hint_msg += "Note: Not recommended to change this value." 181 183 nsigmas.SetToolTipString(hint_msg) 182 184 self.sizer4_4.Add(nsigmas, (iy, ix), … … 200 202 ctl1 = self.ModelTextCtrl(self, -1, size=(_BOX_WIDTH,20), 201 203 style=wx.TE_PROCESS_ENTER) 202 ctl1.SetToolTipString("Absolute Sigma: \n\ 203 1) It is the STD (ratio*mean) of '%s' distribution.\n \ 204 2) It should not exceed Mean/(2*Nsigmas)." %item) 204 ctl1.SetLabel('PD[ratio]') 205 poly_text = "Polydispersity (STD/mean) of %s\n" % item 206 poly_text += "STD: the standard deviation" 207 poly_text += " from the mean value." 208 ctl1.SetToolTipString(poly_text) 205 209 ctl1.SetValue(str (format_number(value))) 206 210 self.sizer4_4.Add(ctl1, (iy,ix),(1,1), wx.EXPAND) … … 255 259 ctl1 = self.ModelTextCtrl(self, -1, size=(_BOX_WIDTH,20), 256 260 style=wx.TE_PROCESS_ENTER) 257 ctl1.SetToolTipString("Absolute Sigma: \n\ 258 1) It is the STD (ratio*mean) of '%s' distribution."% \ 259 item) 261 poly_tip = "Absolute Sigma for %s." % item 262 ctl1.SetToolTipString(poly_tip) 260 263 ctl1.SetValue(str (format_number(value))) 261 264 if not self.enable2D: … … 265 268 # in the case of 2D and angle parameter 266 269 if first_orient: 267 values.SetLabel('Sigma [A (or deg)]') 268 values.SetToolTipString(\ 269 "Sigma(STD) in the A or deg(for angles) unit;\n\ 270 the standard deviation from the mean value.") 270 values.SetLabel('PD[ratio], Sig[deg]') 271 poly_text = "PD(polydispersity for lengths):\n" 272 poly_text += "It should be a value between" 273 poly_text += "0 and 1\n" 274 poly_text += "Sigma for angles: \n" 275 poly_text += "It is the STD (ratio*mean)" 276 poly_text += " of the distribution.\n " % item 277 278 values.SetToolTipString(poly_text) 271 279 first_orient = False 272 280 ctl1.Show(True)
Note: See TracChangeset
for help on using the changeset viewer.