Changeset 88b5e83 in sasview
- Timestamp:
- Apr 27, 2009 10:08:05 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:
- 90db8e8
- Parents:
- da26c1a
- Location:
- park_integration
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
park_integration/AbstractFitEngine.py
r4bd557d r88b5e83 397 397 if self.curr_thread != None : 398 398 try: 399 399 self.curr_thread.isquit() 400 400 except: 401 401 raise FitAbort,"stop leastsqr optimizer" -
park_integration/ScipyFitting.py
r4bd557d r88b5e83 4 4 simple fit with scipy optimizer. 5 5 """ 6 #import scipy.linalg 6 7 7 import numpy 8 9 from Loader import Load10 8 from scipy import optimize 11 9 12 10 from AbstractFitEngine import FitEngine, sansAssembly,FitAbort 13 print "in ScipyFitting fitabort",id(FitAbort),FitAbort.__class__.__module__14 11 15 12 class fitresult: … … 28 25 parameters= None 29 26 30 class old_FitAbort(Exception): 31 """ 32 Exception raise to stop the fit 33 """ 27 34 28 class ScipyFit(FitEngine): 35 29 """ … … 103 97 result.stderr = stderr 104 98 result.pvec = out 105 result.success = success99 result.success = success 106 100 return result 107 101 else: … … 110 104 ## fit engine is stop 111 105 print "fitabort====>" 112 return None 106 #raise 107 return 113 108 114 109 except: 115 r eturn Fitresult()110 raise 116 111 117 112 def profile(fn, *args, **kw):
Note: See TracChangeset
for help on using the changeset viewer.