Changeset 58e0c83 in sasview
- Timestamp:
- Mar 24, 2011 2:42:08 PM (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:
- 50764a4
- Parents:
- 0806def
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fit_thread.py
r66ff250 r58e0c83 7 7 """Thread performing the fit """ 8 8 9 def __init__(self, parent,9 def __init__(self, 10 10 fn, 11 11 page_id, … … 21 21 yieldtime, 22 22 worktime) 23 self.parent = parent24 23 self.handler = handler 25 24 self.fitter = fn -
sansview/perspectives/fitting/fitting.py
r72323d1 r58e0c83 596 596 ## perform single fit 597 597 if fitproblem_count == 1: 598 calc_fit = FitThread(parent=self.parent, 599 handler = handler, 598 calc_fit = FitThread(handler = handler, 600 599 fn=fitter, 601 600 pars=pars, … … 605 604 current_page_id = self.sim_page.uid 606 605 ## Perform more than 1 fit at the time 607 calc_fit = FitThread(parent=self.parent, 608 handler=handler, 606 calc_fit = FitThread(handler=handler, 609 607 fn=fitter, 610 608 page_id=list_page_id, … … 1054 1052 Update the output of plotting model 1D 1055 1053 """ 1056 #msg = "Plot updating ... "1057 #wx.PostEvent(self.parent, StatusEvent(status=msg,type="update"))1058 #self.ready_fit()1059 #self.calc_thread.ready(0.01)1054 msg = "Plot updating ... " 1055 wx.PostEvent(self.parent, StatusEvent(status=msg,type="update")) 1056 self.ready_fit() 1057 1060 1058 1061 1059 def _fill_default_model2D(self, theory, page_id, qmax,qstep, qmin=None): … … 1221 1219 Update the output of plotting model 1222 1220 """ 1223 #wx.PostEvent(self.parent, StatusEvent(status="Plot \1221 wx.PostEvent(self.parent, StatusEvent(status="Plot \ 1224 1222 #updating ... ", type="update")) 1225 #self.ready_fit() 1226 #self.calc_thread.ready(0.01) 1227 1223 self.ready_fit() 1224 1228 1225 def _complete2D(self, image, data, model, page_id, elapsed, index, qmin, 1229 1226 qmax, toggle_mode_on=False,state=None,qstep=DEFAULT_NPTS):
Note: See TracChangeset
for help on using the changeset viewer.