Changeset 32d802f in sasview for sansview/perspectives/fitting/fitpage1D.py
- Timestamp:
- Jan 22, 2009 6:44:45 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:
- fcd8a80e
- Parents:
- fd57185
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage1D.py
r89032bf r32d802f 67 67 self.smearer_box.SetValue(str(None)) 68 68 self.smearer_box.Insert(str(None),i) 69 69 70 for k,v in self.smeares.iteritems(): 70 self.smearer_box.Insert(str(v),i) 71 if str(v)=="GaussianModel": 72 self.smearer_box.Insert("Gaussian Resolution",i) 73 else: 74 self.smearer_box.Insert(str(v),i) 71 75 i+=1 72 76 self.modelbox = wx.ComboBox(self, -1) … … 99 103 ix = 0 100 104 iy += 1 101 self.sizer3.Add(wx.StaticText(self,-1,' Averaging (Smearer Type)'),(iy,ix),(1,1)\105 self.sizer3.Add(wx.StaticText(self,-1,'Instrument Smearing'),(iy,ix),(1,1)\ 102 106 , wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 103 107 ix += 1 … … 344 348 disp_list=self.model.getDispParamList() 345 349 fixed=self.model.fixed 346 print "fixed"350 #print "fixed" 347 351 ip=0 348 352 iq=1 … … 360 364 iy = 1 361 365 ix = 0 362 self.cb1 = wx.CheckBox(self, -1, 'Parameters', (10, 10))366 self.cb1 = wx.CheckBox(self, -1,"Select all", (10, 10)) 363 367 wx.EVT_CHECKBOX(self, self.cb1.GetId(), self.select_all_param) 364 368 self.sizer2.Add(self.cb1,(iy, ix),(1,1),\ … … 378 382 wx.EXPAND|wx.ADJUST_MINSIZE, 0) 379 383 self.text2_4.Hide() 380 print "keys", keys381 print "disp_list", disp_list382 print "fix_list",fixed384 #print "keys", keys 385 #print "disp_list", disp_list 386 #print "fix_list",fixed 383 387 for item in keys: 384 388 if not item in disp_list: … … 506 510 name=str(item[0]) 507 511 value= float(item[1].GetValue()) 508 print "model para", name,value512 # print "model para", name,value 509 513 # If the value of the parameter has changed, 510 514 # update the model and set the is_modified flag … … 517 521 518 522 for item in self.parameters: 519 print "paramters",str(item[0].GetLabelText())523 # print "paramters",str(item[0].GetLabelText()) 520 524 try: 521 525 name=str(item[0].GetLabelText()) 522 526 value= float(item[1].GetValue()) 523 print "model para", name,value527 # print "model para", name,value 524 528 # If the value of the parameter has changed, 525 529 # update the model and set the is_modified flag … … 653 657 654 658 655 if event.GetString()=="Gaussian Model":659 if event.GetString()=="Gaussian Resolution": 656 660 from DataLoader.qsmearing import smear_selection 657 661 smear =smear_selection( self.data ) 658 662 self.manager.set_smearer(smear) 659 print "on smearing"660 663 # print "on smearing" 664
Note: See TracChangeset
for help on using the changeset viewer.