Changeset 51f14603 in sasview for src/sans/fit
- Timestamp:
- Apr 3, 2014 11:37:53 AM (11 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:
- 2f2d9d0
- Parents:
- eea3ffa
- Location:
- src/sans/fit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sans/fit/AbstractFitEngine.py
r5777106 r51f14603 557 557 558 558 :param model: sans.models type 559 :param : is the key of the fitArrange dictionary where model is 560 saved as a value 559 :param id: is the key of the fitArrange dictionary where model is saved as a value 561 560 :param pars: the list of parameters to fit 562 561 :param constraints: list of … … 566 565 Example: 567 566 we want to fit 2 model M1 and M2 both have parameters A and B. 568 constraints can be: 569 constraints = [(M1.A, M2.B+2), (M1.B= M2.A *5),...,] 567 constraints can be ``constraints = [(M1.A, M2.B+2), (M1.B= M2.A *5),...,]`` 570 568 571 569 -
src/sans/fit/ParkFitting.py
r5777106 r51f14603 315 315 Set model parameter "M1"= model.name add {model.parameter.name:value}. 316 316 317 :note: Set_param() if used must always preceded set_model()318 319 engine.set_param( model,"M1", {'A':2,'B':4})317 ..note:: 318 Set_param() if used must always preceded set_model() for the fit to be performed. 319 ``engine.set_param( model,"M1", {'A':2,'B':4})`` 320 320 321 321 Add model with a dictionnary of FitArrangeList{} where Uid is a key … … 327 327 chisqr1, out1, cov1=engine.fit({model.parameter.name:value},qmin,qmax) 328 328 329 :note: {model.parameter.name:value} is ignored in fit function since 329 ..note:: 330 {model.parameter.name:value} is ignored in fit function since 330 331 the user should make sure to call set_param himself. 331 332
Note: See TracChangeset
for help on using the changeset viewer.