Changeset f343069 in sasview
- Timestamp:
- Feb 17, 2009 8:57:36 AM (16 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:
- ef628a1
- Parents:
- 3c37ba2
- Location:
- sansview/perspectives/fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fit_thread.py
r39c8c4e rf343069 132 132 self.ymax = ymax 133 133 self.done= False 134 wx.PostEvent(self.parent, StatusEvent(status=\ 135 "Start the computation %g " % self.starttime,curr_thread=self,type="start")) 134 136 def isquit(self): 135 137 try: … … 144 146 def update(self): 145 147 print "updatting" 146 timen= time.time()148 elapsed = time.time()-self.starttime 147 149 wx.PostEvent(self.parent, StatusEvent(status="Computing \ 148 ... %g sec" % timen))150 ... %g sec" % elapsed ,curr_thread=self,type="update")) 149 151 150 152 def compute(self): … … 152 154 self.starttime = time.time() 153 155 wx.PostEvent(self.parent, StatusEvent(status=\ 154 "S tart the computation %g " % self.starttime))156 "Setting the fit Engine %g " % self.starttime,curr_thread=self,type="progress")) 155 157 handler= ConsoleUpdate(parent= self.parent,improvement_delta=0.1) 156 158 result = self.fitter.fit(handler= handler) -
sansview/perspectives/fitting/fitting.py
rf69bc394 rf343069 286 286 287 287 """ 288 288 289 #print "single fit ", pars,result.pvec,result.stderr,result.fitness 289 #self.done = True290 #wx.PostEvent(self.parent, StatusEvent(status="Fitting Completed: %g" % elapsed))290 wx.PostEvent(self.parent, StatusEvent(status="Single fit \ 291 complete in %g sec" % elapsed, type="stop")) 291 292 try: 292 293 for page, value in self.page_finder.iteritems(): … … 328 329 @param elapsed: computation time 329 330 """ 330 wx.PostEvent(self.parent, StatusEvent(status="Fitting Completed: %g" % elapsed)) 331 wx.PostEvent(self.parent, StatusEvent(status="Sinmultaneous fit \ 332 complete in %g sec" % elapsed, type="stop")) 331 333 try: 332 334 for page, value in self.page_finder.iteritems(): … … 669 671 theory.x_bins= data.x_bins 670 672 theory.y_bins= data.y_bins 671 672 673 tempy=[] 673 674 #print "max x,y",max(data.xmax,data.xmin),max(data.ymax,data.ymin) … … 797 798 798 799 wx.PostEvent(self.parent, StatusEvent(status="Calc \ 799 complete in %g sec" % elapsed ))800 complete in %g sec" % elapsed, type="stop")) 800 801 #print "complete",output, model,qmin, qmax 801 802 data = output -
sansview/perspectives/fitting/simfitpage.py
r3c37ba2 rf343069 59 59 self.Centre() 60 60 61 61 62 def onFit(self,event): 62 63 """ signal for fitting""" … … 73 74 else: 74 75 wx.PostEvent(self.parent.Parent, StatusEvent(status=\ 75 "Select at least on model to fit... ")) 76 "Select at least on model to fit ")) 77 76 78 77 79 … … 187 189 #item[1].schedule_tofit(1) 188 190 self.model_toFit.append(item) 189 print "simultaneous fit ",item[1]190 191 self.manager.schedule_for_fit( value=1,fitproblem =item[1]) 191 192 else:
Note: See TracChangeset
for help on using the changeset viewer.