- Timestamp:
- Apr 14, 2009 4:37:24 PM (16 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:
- fff74cb
- Parents:
- 9cb364a
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
r9cb364a r2a5bba7 110 110 box_description= wx.StaticBox(self, -1,'Chi2/dof') 111 111 boxsizer1 = wx.StaticBoxSizer(box_description, wx.VERTICAL) 112 boxsizer1.SetMinSize(( 55,-1))112 boxsizer1.SetMinSize((60,-1)) 113 113 self.tcChi = wx.StaticText(self, -1, "-", style=wx.ALIGN_LEFT) 114 114 boxsizer1.Add( self.tcChi ) … … 139 139 sizer_data.Add(wx.StaticText(self, -1, 'Source Name : ')) 140 140 sizer_data.Add(DataSource ) 141 sizer_data.Add( ( 5,5) )141 sizer_data.Add( (0,5) ) 142 142 143 143 #---------sizer 2 draw-------------------------------- … … 152 152 sizer_data.Add( text4_3 ) 153 153 sizer_data.Add(wx.StaticText(self, -1, "Min : %s"%data_min)) 154 154 155 sizer_data.Add(wx.StaticText(self, -1, "Max : %s"%data_max)) 155 156 … … 500 501 501 502 err_image[err_image==0]=1 502 503 503 res=[] 504 504 if flag== True: … … 511 511 value = math.pow(self.data.x_bins[i],2)+ math.pow(self.data.y_bins[j],2) 512 512 if value >= math.pow(self.qmin_x,2) and value <= math.pow(self.qmax_x,2): 513 513 514 temp = [self.data.x_bins[i],self.data.y_bins[j]] 514 515 error= err_image[j][i] … … 516 517 #Vector containing residuals 517 518 res.append( math.pow(chisqrji,2) ) 519 518 520 # compute sum of residual 519 521 sum=0 … … 768 770 769 771 iy+=1 770 sizer.Add(( 20,20),(iy,ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)772 sizer.Add((10,10),(iy,ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 771 773 772 774 #Display units text on panel -
sansview/perspectives/fitting/modelpage.py
r196deac r2a5bba7 421 421 422 422 iy+=1 423 sizer.Add(( 20,20),(iy,ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)423 sizer.Add((10,10),(iy,ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 424 424 425 425 #Display units text on panel
Note: See TracChangeset
for help on using the changeset viewer.