Changeset 33dd2e5 in sasview for fittingview/src/sans/perspectives/fitting/fit_thread.py
- Timestamp:
- Sep 12, 2011 4:37:40 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:
- 8523a1f2
- Parents:
- 7afcae8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fit_thread.py
r8aa5788 r33dd2e5 20 20 page_id, 21 21 handler, 22 batch_result, 22 batch_outputs, 23 batch_inputs=None, 23 24 pars=None, 24 25 completefn = None, … … 34 35 self.fitter = fn 35 36 self.pars = pars 36 self.batch_result = batch_result 37 self.batch_inputs = batch_inputs 38 self.batch_outputs = batch_outputs 37 39 self.page_id = page_id 38 40 self.starttime = 0 … … 57 59 msg = "" 58 60 try: 61 import copy 59 62 list_handler = [] 60 63 list_curr_thread = [] … … 72 75 from multiprocessing import Pool 73 76 inputs = zip(list_map_get_attr,self.fitter, list_fit_function, 74 list_handler, list_q, list_curr_thread, list_ftol)77 list_handler, list_q, list_curr_thread, list_ftol) 75 78 result = Pool(1).map(func=map_apply, 76 79 iterable=inputs) 77 #self.handler.starting_fit()78 self.complete(result= result,79 batch_result=self.batch_result,80 self.complete(result=result, 81 batch_inputs=self.batch_inputs, 82 batch_outputs=self.batch_outputs, 80 83 page_id=self.page_id, 81 84 pars = self.pars)
Note: See TracChangeset
for help on using the changeset viewer.