Changeset fa81e94 in sasview for src/sas/sasgui/perspectives/fitting/fit_thread.py
- Timestamp:
- Nov 15, 2017 4:33:09 AM (6 years ago)
- Branches:
- 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
- Children:
- d4881f6a
- Parents:
- 7c487846
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fit_thread.py
- Property mode changed from 100644 to 100755
rf4a1433 rfa81e94 11 11 12 12 def map_apply(arguments): 13 return a pply(arguments[0],arguments[1:])13 return arguments[0](*arguments[1:]) 14 14 15 15 class FitThread(CalcThread): … … 49 49 except KeyboardInterrupt: 50 50 msg = "Fitting: terminated by the user." 51 raise KeyboardInterrupt , msg51 raise KeyboardInterrupt(msg) 52 52 53 53 def compute(self): … … 72 72 list_map_get_attr.append(map_getattr) 73 73 #from multiprocessing import Pool 74 inputs = zip(list_map_get_attr, self.fitter, list_fit_function,74 inputs = list(zip(list_map_get_attr, self.fitter, list_fit_function, 75 75 list_q, list_q, list_handler, list_curr_thread, 76 list_reset_flag) 77 result = map(map_apply, inputs)76 list_reset_flag)) 77 result = list(map(map_apply, inputs)) 78 78 79 79 self.complete(result=result, … … 84 84 elapsed=time.time() - self.starttime) 85 85 86 except KeyboardInterrupt ,msg:86 except KeyboardInterrupt as msg: 87 87 # Thread was interrupted, just proceed and re-raise. 88 88 # Real code should not print, but this is an example...
Note: See TracChangeset
for help on using the changeset viewer.