Changeset 35086c3 in sasview for src/sans/perspectives
- Timestamp:
- Jun 3, 2014 6:12:35 PM (10 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sans/perspectives/fitting/console.py
r644ca73 r35086c3 128 128 129 129 130 def update_fit(self, msg="",last=False):130 def update_fit(self, last=False): 131 131 """ 132 132 """ … … 135 135 self.update_duration = t1 136 136 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)) 138 138 UPDATE_INTERVAL = 5.0 139 139 u_flag = False … … 141 141 self.fit_duration = 0 142 142 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 147 144 if u_flag or last: 148 145 if self.result is not None: … … 163 160 msg += str(self.result) 164 161 msg += "\n" 165 if not last:166 msg += "About %s s elapsed......... \n" % \167 str (UPDATE_INTERVAL)168 162 else: 169 163 msg += "No result available\n"
Note: See TracChangeset
for help on using the changeset viewer.