- Timestamp:
- Apr 3, 2008 12:55:23 PM (17 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:
- 1bde57a
- Parents:
- f63f5ff
- Location:
- guitools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guitools/PlotPanel.py
rf63f5ff rd490a02 411 411 @param dx: float value 412 412 """ 413 if dx >=x:413 if math.fabs(dx) >= math.fabs(x): 414 414 return math.fabs(0.9*x) 415 415 if dx==None: … … 424 424 if dx != None: 425 425 err = 2*x*dx 426 if err >= x:426 if math.fabs(err) >= math.fabs(x): 427 427 err = 0.9*x 428 428 return math.fabs(err) … … 440 440 else: 441 441 err = 0 442 if err >= x:442 if math.fabs(err) >= math.fabs(x): 443 443 err = 0.9*x 444 444 else: … … 459 459 else: 460 460 err = dx/x 461 if err >= x:461 if math.fabs(err) >= math.fabs(x): 462 462 err = 0.9*x 463 463 else: -
guitools/fitDialog.py
rf63f5ff rd490a02 31 31 self.tcErrB = wx.TextCtrl(panel, -1,size=(120,20),style=wx.SIMPLE_BORDER) 32 32 self.tcChi = wx.TextCtrl(panel, -1,size=(120,20),style=wx.SIMPLE_BORDER) 33 self.tcXmin = wx.TextCtrl(panel,-1,s tyle=wx.SIMPLE_BORDER)34 self.tcXmax = wx.TextCtrl(panel,-1,s tyle=wx.SIMPLE_BORDER)33 self.tcXmin = wx.TextCtrl(panel,-1,size=(120,20),style=wx.SIMPLE_BORDER) 34 self.tcXmax = wx.TextCtrl(panel,-1,size=(120,20),style=wx.SIMPLE_BORDER) 35 35 self.btFit =wx.Button(panel,-1,'Fit' ) 36 36 btClose =wx.Button(panel, wx.ID_CANCEL,'Close' )
Note: See TracChangeset
for help on using the changeset viewer.