Changeset 12aa9b5 in sasview for guiframe/model_thread.py


Ignore:
Timestamp:
Mar 5, 2009 11:46:57 AM (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:
07a93a1
Parents:
6c0568b
Message:

class and method commented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/model_thread.py

    r6d920cd r12aa9b5  
    3232            CalcThread.isquit(self) 
    3333        except KeyboardInterrupt: 
    34             #printEVT("Calc %s interrupted" % self.model.name) 
    3534            wx.PostEvent(self.parent, StatusEvent(status=\ 
    3635                       "Calc %s interrupted" % self.model.name)) 
     
    108107        self.x = x 
    109108        self.y = y 
     109        ## the model on to calculate 
    110110        self.model = model 
    111111        self.starttime = 0 
     
    113113                    "Start Drawing model  ",curr_thread=self,type="start")) 
    114114         
     115         
    115116    def isquit(self): 
    116117        try: 
    117118            CalcThread.isquit(self) 
    118119        except KeyboardInterrupt: 
    119             #printEVT("Calc %s interrupted" % self.model.name) 
    120120            wx.PostEvent(self.parent, StatusEvent(status=\ 
    121121                       "Calc %s interrupted" % self.model.name)) 
     
    123123            raise KeyboardInterrupt 
    124124         
     125         
    125126    def update(self, output=None): 
    126          
     127        """ 
     128            Post a message if update available 
     129        """ 
    127130        wx.PostEvent(self.parent, StatusEvent(status="Plot \ 
    128131        #updating ... ",curr_thread=self,type="update")) 
     
    130133         
    131134    def compute(self): 
     135        """ 
     136            Compute the data given a model function 
     137        """ 
    132138        import numpy 
    133139        x = self.x 
     
    163169                       "Error computing %s at [%g,%g]" %(self.model.name, self.x[i_x],self.y[i_y]))) 
    164170                     pass 
    165         #print "model thread ouput",output        
     171         
    166172        elapsed = time.time()-self.starttime 
    167173        self.complete( 
Note: See TracChangeset for help on using the changeset viewer.