Changeset 8b481a51 in sasview for sansview/perspectives
- Timestamp:
- Apr 28, 2011 10:22:57 AM (14 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:
- ea4dfe0
- Parents:
- 0c975ab
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/console.py
r2296316 r8b481a51 54 54 self.improvement_time = t 55 55 56 #wx.PostEvent(self.parent, StatusEvent(status=\57 #"%d%% complete ..."%(p),type="progress"))56 wx.PostEvent(self.parent, StatusEvent(status=\ 57 "%d%% complete ..."%(p),type="progress")) 58 58 59 59 # Update percent complete … … 65 65 self.progress_percent = p 66 66 self.progress_time = t 67 #wx.PostEvent(self.parent, StatusEvent(status=\68 #"%d%% complete ..."%(p),69 #type="progress"))67 wx.PostEvent(self.parent, StatusEvent(status=\ 68 "%d%% complete ..."%(p), 69 type="progress")) 70 70 71 71 elif 2 < dp <= 5: 72 72 if p//5 != self.progress_percent//5: 73 #wx.PostEvent(self.parent, StatusEvent(status=\74 #"%d%% complete ..."%(5*(p//5)),type="progress"))73 wx.PostEvent(self.parent, StatusEvent(status=\ 74 "%d%% complete ..."%(5*(p//5)),type="progress")) 75 75 self.progress_percent = p 76 76 self.progress_time = t … … 79 79 self.progress_percent = p 80 80 self.progress_time = t 81 #wx.PostEvent(self.parent, StatusEvent(status=\82 #"%d%% complete ..."%(10*(p//10)),type="progress"))81 wx.PostEvent(self.parent, StatusEvent(status=\ 82 "%d%% complete ..."%(10*(p//10)),type="progress")) 83 83 84 84 def improvement(self): … … 95 95 if self.isbetter: 96 96 self.result.print_summary() 97 #message = "fit Error"98 #message = str(msg)+ " \n %s"%self.result.__str__()99 #wx.PostEvent(self.parent, StatusEvent(status=message,100 #info="error", type="stop"))97 message = "fit Error" 98 message = str(msg)+ " \n %s"%self.result.__str__() 99 wx.PostEvent(self.parent, StatusEvent(status=message, 100 info="error", type="stop")) 101 101 102 102 def finalize(self): … … 125 125 """ 126 126 """ 127 #wx.PostEvent(self.parent, StatusEvent(status="Starting the Fit...",128 #info="info",type="progress"))127 wx.PostEvent(self.parent, StatusEvent(status="Starting the Fit...", 128 info="info",type="progress")) 129 129 130 130 def set_result(self, result): -
sansview/perspectives/fitting/fitting.py
r908b817 r8b481a51 645 645 page_id=list_page_id, 646 646 updatefn=handler.update_fit, 647 completefn=self._simul_fit_completed, 647 648 ftol=self.ftol) 648 649 self.fit_thread_list[current_page_id] = calc_fit
Note: See TracChangeset
for help on using the changeset viewer.