Changeset ccb0f39 in sasview for fittingview/src/sans/perspectives


Ignore:
Timestamp:
Oct 18, 2011 12:16:10 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:
a307a5a
Parents:
5d344c6
Message:

display chi2 during fitting after 5secs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/console.py

    r15f68ce rccb0f39  
    116116        """ 
    117117        self.elapsed_time = time.time() - self.elapsed_time 
    118         msg = " Updating fit ...\n result:\n %s \n"%self.result.fitness 
    119         wx.PostEvent(self.parent, StatusEvent(status=msg, info="info", 
     118        dt = self.elapsed_time-self.progress_time 
     119        if dt > 5: 
     120            print "self.progress_time", dt 
     121            msg = " Updating fit... \n Chi2/Npts = %s \n"\ 
     122                           % (self.result.fitness) 
     123            wx.PostEvent(self.parent, StatusEvent(status=msg, info="info", 
    120124                                              type="progress")) 
    121         time.sleep(0.01) 
     125            #time.sleep(0.001) 
    122126         
    123127    def starting_fit(self): 
Note: See TracChangeset for help on using the changeset viewer.