Changeset eef2e0ed in sasview for park_integration/ScipyFitting.py
- Timestamp:
- Mar 27, 2009 1:02:10 PM (15 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:
- ca7a626
- Parents:
- 1ae3fe1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
park_integration/ScipyFitting.py
ra320904 reef2e0ed 63 63 64 64 def fit(self ,handler=None): 65 # Protect against simultanous fitting attempts66 #if len(self.fitArrangeDict)>1:67 # raise RuntimeError, "Scipy can't fit more than a single fit problem at a time."68 # fitproblem contains first fitArrange object(one model and a list of data)69 #list of fitproblem70 65 71 66 fitproblem=[] 72 67 for id ,fproblem in self.fitArrangeDict.iteritems(): 73 #print "ScipyFitting:fproblem.get_to_fit() ",fproblem.get_to_fit()74 68 if fproblem.get_to_fit()==1: 75 69 fitproblem.append(fproblem) … … 83 77 listdata=[] 84 78 model = fitproblem[0].get_model() 85 #print "data",fitproblem[0].dList86 79 listdata = fitproblem[0].get_data() 87 80 # Concatenate dList set (contains one or more data)before fitting 88 81 #data=self._concatenateData( listdata) 89 82 data=listdata 90 91 92 83 functor= sansAssembly(self.paramList,model,data) 93 94 84 95 85 out, cov_x, info, mesg, success = optimize.leastsq(functor,model.getParams(self.paramList), full_output=1, warning=True)
Note: See TracChangeset
for help on using the changeset viewer.