Changeset 67ae937 in sasview for sansview/perspectives/fitting/fit_thread.py
- Timestamp:
- Aug 3, 2011 8:55:13 AM (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:
- 8677607
- Parents:
- 4225aed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fit_thread.py
rcc31608 r67ae937 69 69 list_map_get_attr.append(map_getattr) 70 70 from multiprocessing import Pool 71 inputs = zip(list_map_get_attr,self.fitter, list_fit_function, list_handler, list_q, list_curr_thread,list_ftol)72 print inputs71 inputs = zip(list_map_get_attr,self.fitter, list_fit_function, 72 list_handler, list_q, list_curr_thread,list_ftol) 73 73 result = Pool(1).map(func=map_apply, 74 74 iterable=inputs) 75 75 #self.handler.starting_fit() 76 #Result from the fit77 """78 result = self.fitter.fit(handler=self.handler,79 curr_thread=self,80 ftol=self.ftol)81 """82 print "fithread result", result83 76 self.complete(result= result, 84 77 page_id=self.page_id, … … 89 82 # Real code should not print, but this is an example... 90 83 #print "keyboard exception" 91 #Stop on exception during fitting. Todo: need to put some mssg and reset progress bar. 84 #Stop on exception during fitting. Todo: need to put 85 #some mssg and reset progress bar. 92 86 raise 93 87 #if self.handler is not None:
Note: See TracChangeset
for help on using the changeset viewer.