Ignore:
Timestamp:
Jan 22, 2009 6:44:45 PM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

plotted the result from fit 2D on a separate plot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitpage1D.py

    r89032bf r32d802f  
    6767        self.smearer_box.SetValue(str(None)) 
    6868        self.smearer_box.Insert(str(None),i) 
     69         
    6970        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)   
    7175            i+=1 
    7276        self.modelbox = wx.ComboBox(self, -1) 
     
    99103        ix = 0 
    100104        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)\ 
    102106                  , wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 
    103107        ix += 1 
     
    344348        disp_list=self.model.getDispParamList() 
    345349        fixed=self.model.fixed 
    346         print "fixed" 
     350        #print "fixed" 
    347351        ip=0 
    348352        iq=1 
     
    360364        iy = 1 
    361365        ix = 0 
    362         self.cb1 = wx.CheckBox(self, -1,'Parameters', (10, 10)) 
     366        self.cb1 = wx.CheckBox(self, -1,"Select all", (10, 10)) 
    363367        wx.EVT_CHECKBOX(self, self.cb1.GetId(), self.select_all_param) 
    364368        self.sizer2.Add(self.cb1,(iy, ix),(1,1),\ 
     
    378382                            wx.EXPAND|wx.ADJUST_MINSIZE, 0)  
    379383        self.text2_4.Hide() 
    380         print "keys", keys 
    381         print "disp_list", disp_list 
    382         print "fix_list",fixed 
     384        #print "keys", keys 
     385        #print "disp_list", disp_list 
     386        #print "fix_list",fixed 
    383387        for item in keys: 
    384388            if not item in disp_list: 
     
    506510                     name=str(item[0]) 
    507511                     value= float(item[1].GetValue()) 
    508                      print "model para", name,value 
     512#                     print "model para", name,value 
    509513                     # If the value of the parameter has changed, 
    510514                     # update the model and set the is_modified flag 
     
    517521                 
    518522            for item in self.parameters: 
    519                 print "paramters",str(item[0].GetLabelText()) 
     523#                print "paramters",str(item[0].GetLabelText()) 
    520524                try: 
    521525                     name=str(item[0].GetLabelText()) 
    522526                     value= float(item[1].GetValue()) 
    523                      print "model para", name,value 
     527#                     print "model para", name,value 
    524528                     # If the value of the parameter has changed, 
    525529                     # update the model and set the is_modified flag 
     
    653657             
    654658             
    655         if event.GetString()=="GaussianModel": 
     659        if event.GetString()=="Gaussian Resolution": 
    656660            from DataLoader.qsmearing import smear_selection 
    657661            smear =smear_selection( self.data ) 
    658662            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.