Changeset f343069 in sasview for sansview/perspectives


Ignore:
Timestamp:
Feb 17, 2009 10:57:36 AM (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:
ef628a1
Parents:
3c37ba2
Message:

improve message on gauge of the status bar

Location:
sansview/perspectives/fitting
Files:
3 edited

Legend:

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

    r39c8c4e rf343069  
    132132        self.ymax = ymax 
    133133        self.done= False 
     134        wx.PostEvent(self.parent, StatusEvent(status=\ 
     135                       "Start the computation %g " % self.starttime,curr_thread=self,type="start")) 
    134136    def isquit(self): 
    135137        try: 
     
    144146    def update(self): 
    145147        print "updatting" 
    146         timen= time.time() 
     148        elapsed = time.time()-self.starttime 
    147149        wx.PostEvent(self.parent, StatusEvent(status="Computing \ 
    148         ... %g sec" % timen)) 
     150        ... %g sec" %  elapsed ,curr_thread=self,type="update")) 
    149151             
    150152    def compute(self): 
     
    152154            self.starttime = time.time() 
    153155            wx.PostEvent(self.parent, StatusEvent(status=\ 
    154                        "Start the computation %g " % self.starttime)) 
     156                       "Setting the fit Engine %g " % self.starttime,curr_thread=self,type="progress")) 
    155157            handler= ConsoleUpdate(parent= self.parent,improvement_delta=0.1) 
    156158            result = self.fitter.fit(handler= handler) 
  • sansview/perspectives/fitting/fitting.py

    rf69bc394 rf343069  
    286286           
    287287        """ 
     288         
    288289        #print "single fit ", pars,result.pvec,result.stderr,result.fitness 
    289         #self.done = True 
    290         #wx.PostEvent(self.parent, StatusEvent(status="Fitting Completed: %g" % elapsed)) 
     290        wx.PostEvent(self.parent, StatusEvent(status="Single fit \ 
     291        complete in %g sec" % elapsed, type="stop")) 
    291292        try: 
    292293            for page, value in self.page_finder.iteritems(): 
     
    328329            @param elapsed: computation time 
    329330        """ 
    330         wx.PostEvent(self.parent, StatusEvent(status="Fitting Completed: %g" % elapsed)) 
     331        wx.PostEvent(self.parent, StatusEvent(status="Sinmultaneous fit \ 
     332        complete in %g sec" % elapsed, type="stop")) 
    331333        try: 
    332334            for page, value in self.page_finder.iteritems(): 
     
    669671                theory.x_bins= data.x_bins 
    670672                theory.y_bins= data.y_bins 
    671                      
    672673                tempy=[] 
    673674                #print "max x,y",max(data.xmax,data.xmin),max(data.ymax,data.ymin) 
     
    797798        
    798799        wx.PostEvent(self.parent, StatusEvent(status="Calc \ 
    799         complete in %g sec" % elapsed)) 
     800        complete in %g sec" % elapsed, type="stop")) 
    800801        #print "complete",output, model,qmin, qmax 
    801802        data = output 
  • sansview/perspectives/fitting/simfitpage.py

    r3c37ba2 rf343069  
    5959        self.Centre() 
    6060         
     61         
    6162    def onFit(self,event): 
    6263        """ signal for fitting""" 
     
    7374        else: 
    7475            wx.PostEvent(self.parent.Parent, StatusEvent(status=\ 
    75                             "Select at least on model to fit... ")) 
     76                            "Select at least on model to fit ")) 
     77            
    7678             
    7779             
     
    187189                #item[1].schedule_tofit(1) 
    188190                self.model_toFit.append(item) 
    189                 print "simultaneous fit ",item[1] 
    190191                self.manager.schedule_for_fit( value=1,fitproblem =item[1])  
    191192            else: 
Note: See TracChangeset for help on using the changeset viewer.