Changeset a2cb1f9 in sasview for sansview/perspectives/fitting
- Timestamp:
- Jun 9, 2011 5:47:24 PM (13 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:
- 64bc8e3
- Parents:
- 5011193
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
rf29550d ra2cb1f9 622 622 #if self.calc_fit!= None and self.calc_fit.isrunning(): 623 623 # self.calc_fit.stop() 624 #Handler used for park engine displayed message 624 msg = "Fitting is in progress..." 625 wx.PostEvent( self.parent, StatusEvent(status=msg, type="progress" )) 626 627 #Handler used for park engine displayed message 625 628 handler = ConsoleUpdate(parent=self.parent, 626 629 manager=self, 627 630 improvement_delta=0.1) 628 631 time.sleep(0.2) 629 632 ## perform single fit 630 633 if fitproblem_count == 1: … … 645 648 ftol=self.ftol) 646 649 self.fit_thread_list[current_page_id] = calc_fit 650 time.sleep(0.3) 651 652 #self.ready_fit(calc_fit=calc_fit) 647 653 calc_fit.queue() 648 msg = "Fitting is in progress..."649 wx.PostEvent( self.parent, StatusEvent(status=msg, type="progress" ))650 651 self.ready_fit(calc_fit=calc_fit)652 653 654 654 655 def ready_fit(self, calc_fit): … … 891 892 :param qmax: the maximum value of x to replot model 892 893 893 """ 894 """ 895 time.sleep(0.2) 894 896 try: 895 897 if result == None: … … 957 959 page_id = [] 958 960 ## fit more than 1 model at the same time 961 time.sleep(0.2) 959 962 try: 960 963 msg = "" … … 1137 1140 msg = "Plot updating ... " 1138 1141 wx.PostEvent(self.parent, StatusEvent(status=msg,type="update")) 1139 self.ready_fit()1142 #self.ready_fit() 1140 1143 1141 1144 … … 1312 1315 wx.PostEvent(self.parent, StatusEvent(status="Plot \ 1313 1316 #updating ... ", type="update")) 1314 self.ready_fit()1317 #self.ready_fit() 1315 1318 1316 1319 def _complete2D(self, image, data, model, page_id, elapsed, index, qmin,
Note: See TracChangeset
for help on using the changeset viewer.