Ignore:
Timestamp:
Feb 27, 2009 6:53:16 PM (15 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:
b491d6e
Parents:
6d920cd
Message:

print statement removed

File:
1 edited

Legend:

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

    r7d680c7 red2ea6a  
    738738            angle= self.phi_cb.GetLabelText() 
    739739        n=0 
    740         print "hello1",self.model.runXY([0.01,0.01])  
     740        #print "hello1",self.model.runXY([0.01,0.01])  
    741741        self.disp_list=self.model.getDispParamList() 
    742742        name= "phi" 
     
    748748                    #self.model.dispersion[param]['npts'] = len(values) 
    749749                    n+=1 
    750             print "model dispers list",self.model.getDispParamList() 
     750            #print "model dispers list",self.model.getDispParamList() 
    751751            if n ==0: 
    752752              wx.PostEvent(self.parent.parent, StatusEvent(status=\ 
    753753                            " Model contains no %s distribution"%name))   
    754754            else: 
    755                 print "hello2",self.model.runXY([0.01,0.01])  
     755                #print "hello2",self.model.runXY([0.01,0.01])  
    756756                #self._draw_model() 
    757757                qmin=self.qmin_x 
     
    775775                            value = self.model.runXY([x[i_x], y[i_y]]) 
    776776                            output[i_x] [i_y]=value  
    777                 print"modelpage", output 
     777                #print"modelpage", output 
    778778                self.manager.complete( output=output, elapsed=None, model=self.model, qmin=qmin, qmax=qmax,qstep=qstep) 
    779779                #self._draw_model() 
     
    782782                       
    783783    def set_panel_dispers(self, disp_list, type="GaussianModel" ): 
     784        """ 
     785        """ 
    784786         
    785787        self.fittable_param=[] 
     
    958960         
    959961    def set_model_parameter(self): 
     962        """ 
     963        """ 
    960964        if len(self.parameters) !=0 and self.model !=None: 
    961965            # Flag to register when a parameter has changed. 
     
    975979                          
    976980                except: 
    977                     raise 
     981                    #raise 
    978982                    wx.PostEvent(self.parent.parent, StatusEvent(status=\ 
    979983                            "Model Drawing  Error:wrong value entered : %s"% sys.exc_value)) 
     984                    return  
     985                 
    980986                 
    981987            for item in self.fixed_param: 
     
    10091015                         self.model.setParam(name,value) 
    10101016                         is_modified = True 
    1011                      """ 
    1012                      #if self.checkFitValues(item[4], item[5]): 
    1013                      #    if param_min.lstrip().rstrip()== "-inf": 
    1014                              param_min=None 
    1015                          else: 
    1016                              param_min=float(param_min) 
    1017                          if param_max.lstrip().rstrip() =="+inf": 
    1018                              param_max=None 
    1019                          else: 
    1020                              param_max=float(param_max) 
    1021                          if  param_min !=  self.model.details[name][1]: 
    1022                              self.model.details[name][1]= param_min 
    1023                              is_modified = True 
    1024                          if  param_max !=  self.model.details[name][2]: 
    1025                              self.model.details[name][2]= param_max 
    1026                              is_modified = True 
    1027                         """ 
     1017                    
    10281018                except: 
    1029                     #print item[4].GetValue(),item[5].GetValue() 
    1030                     raise  
    1031                     #wx.PostEvent(self.parent.parent, StatusEvent(status=\ 
    1032                     #       "Model Drawing  Error:wrong value entered : %s"% sys.exc_value)) 
    1033              
     1019                    #raise  
     1020                    wx.PostEvent(self.parent.parent, StatusEvent(status=\ 
     1021                           "Model Drawing  Error:wrong value entered : %s"% sys.exc_value)) 
     1022                    return 
     1023                 
     1024                 
    10341025            # Here we should check whether the boundaries have been modified. 
    10351026            # If qmin and qmax have been modified, update qmin and qmax and  
     
    10671058        
    10681059    def select_param(self,event): 
     1060        """ 
     1061         
     1062        """ 
    10691063        pass 
    10701064    def select_all_param(self,event):  
     1065        """ 
     1066         
     1067        """ 
    10711068        pass 
    10721069    def select_all_param_helper(self): 
Note: See TracChangeset for help on using the changeset viewer.