Changeset a2cb1f9 in sasview for sansview/perspectives


Ignore:
Timestamp:
Jun 9, 2011 5:47:24 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
64bc8e3
Parents:
5011193
Message:

cleaned up around on_Fit and added sleep

File:
1 edited

Legend:

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

    rf29550d ra2cb1f9  
    622622        #if self.calc_fit!= None and self.calc_fit.isrunning(): 
    623623        #    self.calc_fit.stop() 
    624          #Handler used for park engine displayed message 
     624        msg = "Fitting is in progress..." 
     625        wx.PostEvent( self.parent, StatusEvent(status=msg, type="progress" )) 
     626         
     627        #Handler used for park engine displayed message 
    625628        handler = ConsoleUpdate(parent=self.parent, 
    626629                                manager=self, 
    627630                                improvement_delta=0.1) 
    628          
     631        time.sleep(0.2) 
    629632        ## perform single fit 
    630633        if fitproblem_count == 1: 
     
    645648                                    ftol=self.ftol) 
    646649        self.fit_thread_list[current_page_id] = calc_fit 
     650        time.sleep(0.3) 
     651         
     652        #self.ready_fit(calc_fit=calc_fit) 
    647653        calc_fit.queue() 
    648         msg = "Fitting is in progress..." 
    649         wx.PostEvent( self.parent, StatusEvent(status=msg, type="progress" )) 
    650          
    651         self.ready_fit(calc_fit=calc_fit) 
    652        
    653654             
    654655    def ready_fit(self, calc_fit): 
     
    891892        :param qmax: the maximum value of x to replot model 
    892893           
    893         """      
     894        """   
     895        time.sleep(0.2)    
    894896        try: 
    895897            if result == None: 
     
    957959            page_id = [] 
    958960        ## fit more than 1 model at the same time  
     961        time.sleep(0.2)   
    959962        try: 
    960963            msg = ""  
     
    11371140        msg = "Plot updating ... " 
    11381141        wx.PostEvent(self.parent, StatusEvent(status=msg,type="update")) 
    1139         self.ready_fit() 
     1142        #self.ready_fit() 
    11401143         
    11411144     
     
    13121315        wx.PostEvent(self.parent, StatusEvent(status="Plot \ 
    13131316        #updating ... ", type="update")) 
    1314         self.ready_fit() 
     1317        #self.ready_fit() 
    13151318   
    13161319    def _complete2D(self, image, data, model, page_id,  elapsed, index, qmin, 
Note: See TracChangeset for help on using the changeset viewer.