Changeset 35086c3 in sasview for src/sans/perspectives


Ignore:
Timestamp:
Jun 3, 2014 6:12:35 PM (10 years ago)
Author:
pkienzle
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:
949aa2c
Parents:
ddfe1eb7
Message:

show fit progress for bumps

File:
1 edited

Legend:

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

    r644ca73 r35086c3  
    128128             
    129129         
    130     def update_fit(self, msg="", last=False): 
     130    def update_fit(self, last=False): 
    131131        """ 
    132132        """ 
     
    135135        self.update_duration = t1 
    136136        self.fit_duration += self.elapsed_time 
    137         str_time = time.strftime("%a, %d %b %Y %H:%M:%S ", time.localtime(t1)) 
     137        str_time = time.strftime("%Y-%m-%d %H:%M:%S ", time.localtime(t1)) 
    138138        UPDATE_INTERVAL = 5.0 
    139139        u_flag = False 
     
    141141            self.fit_duration = 0 
    142142            u_flag = True 
    143         if not last: 
    144             msg += "Fit Updates ... %s \n" % str_time     
    145         else: 
    146             msg += "Final updates ........." 
     143        msg = str_time 
    147144        if u_flag or last: 
    148145            if self.result is not None: 
     
    163160                msg +=  str(self.result) 
    164161                msg += "\n" 
    165                 if not last: 
    166                     msg += "About %s s elapsed......... \n" % \ 
    167                                             str (UPDATE_INTERVAL) 
    168162            else: 
    169163                msg += "No result available\n" 
Note: See TracChangeset for help on using the changeset viewer.