Changeset e71440c in sasview for park_integration/ScipyFitting.py
- Timestamp:
- Sep 23, 2008 3:11:08 PM (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:
- 442895f
- Parents:
- 5f96484
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
park_integration/ScipyFitting.py
rca6d914 re71440c 76 76 if qmax==None: 77 77 qmax= max(data.x) 78 functor= sansAssembly(model,data) 79 78 functor= sansAssembly(self.paramList,model,data) 80 79 out, cov_x, info, mesg, success = optimize.leastsq(functor,model.getParams(self.paramList), full_output=1, warning=True) 81 80 chisqr = functor.chisq(out) 81 82 82 if cov_x is not None and numpy.isfinite(cov_x).all(): 83 83 stderr = numpy.sqrt(numpy.diag(cov_x)) 84 84 else: 85 stderr=None 85 86 if not (numpy.isnan(out).any()) or ( cov_x !=None) : 86 87 result = fitresult()
Note: See TracChangeset
for help on using the changeset viewer.