Changeset d171299 in sasview
- Timestamp:
- Oct 24, 2008 5:05:33 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:
- 922b0d1
- Parents:
- b24bf4e
- Location:
- sansview
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/bugs.txt
r7691125 rd171299 6 6 4-select a model from the model menu , hit close , select it again from the model menu : 7 7 the parameters don't appear 8 9 ------>bugs [1,2,3,4] fixed---9.46 am 10/22/2008 10 11 5- plot data2D theory not working for all models 12 ---->bugs[5] fixed -
sansview/perspectives/fitting/fitpage1D.py
r44bbf6a rd171299 54 54 self.sizer2 = wx.GridBagSizer(5,5) 55 55 self.sizer1 = wx.GridBagSizer(5,5) 56 #self.sizer1 =wx.BoxSizer(wx.HORIZONTAL) 56 57 #self.DataSource = wx.TextCtrl(self, -1,size=(_BOX_WIDTH,20)) 57 58 #self.DataSource.SetToolTipString("name of data to fit") … … 127 128 self.xmax.Bind(wx.EVT_TEXT_ENTER, self._onTextEnter) 128 129 self.xmax.Disable() 130 iy+=1 131 self.sizer4.Add((20,20),(iy,ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 0) 129 132 #Set chisqr result into TextCtrl 130 133 ix = 0 131 134 iy = 1 135 132 136 self.text1_1 = wx.StaticText(self, -1, 'Chi2/dof', style=wx.ALIGN_LEFT) 137 #self.sizer1.Add(self.text1_1,1) 133 138 self.sizer1.Add(self.text1_1,(iy,ix),(1,1),\ 134 139 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) … … 136 141 self.tcChi = wx.TextCtrl(self, -1,size=(_BOX_WIDTH,20)) 137 142 self.tcChi.SetToolTipString("Chi^2 over degrees of freedom.") 143 #self.sizer1.Add(self.tcChi, 1, wx.R | wx.BOTTOM , 5) 138 144 self.sizer1.Add(self.tcChi,(iy,ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 0) 139 145 ix +=2 146 #self.sizer1.Add(self.btFit, 1, wx.LEFT | wx.BOTTOM , 5) 140 147 self.sizer1.Add(self.btFit,(iy,ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 0) 141 148 ix+= 1 142 149 self.sizer1.Add( self.btClose,(iy,ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 0) 150 #self.sizer1.Add( self.btClose,1, wx.LEFT | wx.BOTTOM , 5) 151 143 152 ix= 1 144 153 iy+=1 145 154 self.sizer1.Add((20,20),(iy,ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 0) 155 #self.sizer1.Add((20,20), 0) 146 156 # contains link between model ,all its parameters, and panel organization 147 157 self.parameters=[] … … 166 176 @param owner: the class responsible of plotting 167 177 """ 168 self.event_owner =owner178 self.event_owner = owner 169 179 170 180 -
sansview/perspectives/fitting/fitpage2D.py
r44bbf6a rd171299 279 279 post an event to its owner to draw an appropriate theory 280 280 """ 281 281 self.btFit.SetFocus() 282 282 for item in self.model_list_box.itervalues(): 283 283 name = item.__name__ … … 364 364 365 365 self.sizer2.Clear(True) 366 self.sizer5.Clear(True) 366 367 self.parameters = [] 367 368 self.param_toFit=[] … … 429 430 iy+=1 430 431 self.sizer2.Add((20,20),(iy,ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 431 ix= 0 432 iy=1 432 433 433 if len(disp_list)>0: 434 ix= 0 435 iy=1 434 436 disp = wx.StaticText(self, -1, 'Dispersion') 435 437 self.sizer5.Add(disp,( iy, ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) … … 443 445 #npts = wx.StaticText(self, -1, 'npts') 444 446 #self.sizer5.Add(npts,( iy, ix),(1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 445 iy +=1447 iy +=1 446 448 447 for item in disp_list:448 ix = 0449 cb2 = wx.CheckBox(self, -1, item, (10, 10))450 cb2.SetValue(False)451 self.sizer5.Add( cb2,( iy, ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)452 wx.EVT_CHECKBOX(self, cb2.GetId(), self.select_param)453 454 ix += 1455 value= self.model.getParam(item)456 ctl2 = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), style=wx.TE_PROCESS_ENTER)457 ctl2.SetValue(str (format_number(value)))458 ctl2.Bind(wx.EVT_KILL_FOCUS, self._onparamEnter)459 ctl2.Bind(wx.EVT_TEXT_ENTER,self._onparamEnter)460 self.sizer5.Add(ctl2, (iy,ix),(1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0)461 iy += 1449 for item in disp_list: 450 ix = 0 451 cb2 = wx.CheckBox(self, -1, item, (10, 10)) 452 cb2.SetValue(False) 453 self.sizer5.Add( cb2,( iy, ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 454 wx.EVT_CHECKBOX(self, cb2.GetId(), self.select_param) 455 456 ix += 1 457 value= self.model.getParam(item) 458 ctl2 = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), style=wx.TE_PROCESS_ENTER) 459 ctl2.SetValue(str (format_number(value))) 460 ctl2.Bind(wx.EVT_KILL_FOCUS, self._onparamEnter) 461 ctl2.Bind(wx.EVT_TEXT_ENTER,self._onparamEnter) 462 self.sizer5.Add(ctl2, (iy,ix),(1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 463 iy += 1 462 464 #Display units text on panel 463 465 for item in keys: -
sansview/perspectives/fitting/modelpage.py
r5cab7d3 rd171299 216 216 if hasattr(self.model,'description'): 217 217 description =model.description 218 219 218 220 print "went here",self.model.name,model.description 219 221 iy = 1 … … 222 224 self.sizer1.Add(self.cb0,(iy, ix),(1,1),\ 223 225 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 224 ix += 1 225 self.cb01 = wx.StaticText(self, -1,str(description)) 226 iy += 1 227 228 self.cb01 = wx.StaticText(self, -1,str(description),style=wx.ALIGN_LEFT) 229 self.cb01.Wrap(400) 230 #self.cb01 = wx.StaticText(self, -1,str(description),(45, 25),style=wx.ALIGN_LEFT) 231 226 232 self.sizer1.Add(self.cb01,(iy, ix),(1,1),\ 227 233 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)
Note: See TracChangeset
for help on using the changeset viewer.