Changeset 58e0c83 in sasview


Ignore:
Timestamp:
Mar 24, 2011 2:42:08 PM (14 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:
50764a4
Parents:
0806def
Message:

working on fit stop

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

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

    r66ff250 r58e0c83  
    77    """Thread performing the fit """ 
    88     
    9     def __init__(self, parent, 
     9    def __init__(self,  
    1010                  fn, 
    1111                  page_id, 
     
    2121                 yieldtime, 
    2222                 worktime) 
    23         self.parent = parent 
    2423        self.handler = handler 
    2524        self.fitter = fn 
  • sansview/perspectives/fitting/fitting.py

    r72323d1 r58e0c83  
    596596        ## perform single fit 
    597597        if fitproblem_count == 1: 
    598             calc_fit = FitThread(parent=self.parent, 
    599                                     handler = handler, 
     598            calc_fit = FitThread(handler = handler, 
    600599                                    fn=fitter, 
    601600                                   pars=pars, 
     
    605604            current_page_id = self.sim_page.uid 
    606605            ## Perform more than 1 fit at the time 
    607             calc_fit = FitThread(parent=self.parent, 
    608                                 handler=handler, 
     606            calc_fit = FitThread(handler=handler, 
    609607                                    fn=fitter, 
    610608                                    page_id=list_page_id, 
     
    10541052        Update the output of plotting model 1D 
    10551053        """ 
    1056         #msg = "Plot updating ... " 
    1057         #wx.PostEvent(self.parent, StatusEvent(status=msg,type="update")) 
    1058         #self.ready_fit() 
    1059         #self.calc_thread.ready(0.01) 
     1054        msg = "Plot updating ... " 
     1055        wx.PostEvent(self.parent, StatusEvent(status=msg,type="update")) 
     1056        self.ready_fit() 
     1057         
    10601058     
    10611059    def _fill_default_model2D(self, theory, page_id, qmax,qstep, qmin=None): 
     
    12211219        Update the output of plotting model 
    12221220        """ 
    1223         #wx.PostEvent(self.parent, StatusEvent(status="Plot \ 
     1221        wx.PostEvent(self.parent, StatusEvent(status="Plot \ 
    12241222        #updating ... ", type="update")) 
    1225         #self.ready_fit() 
    1226         #self.calc_thread.ready(0.01) 
    1227      
     1223        self.ready_fit() 
     1224   
    12281225    def _complete2D(self, image, data, model, page_id,  elapsed, index, qmin, 
    12291226                     qmax, toggle_mode_on=False,state=None,qstep=DEFAULT_NPTS): 
Note: See TracChangeset for help on using the changeset viewer.