Class Fit contains ScipyFit and ParkFit methods declaration allows to create instance of type ScipyFit or ParkFit to perform either a park fit or a scipy fit.
Wrap class that allows to select the fitting type.this class can be used as follow :
from sans.fit.Fitting import Fit
fitter= Fit()
fitter.fit_engine('scipy') or fitter.fit_engine('park')
engine = fitter.returnEngine()
engine.set_data(data,Uid)
engine.set_param( model,model.name, pars)
engine.set_model(model,Uid)
chisqr1, out1, cov1=engine.fit(pars,qmin,qmax)
return the self.selected value of the fit problem of Uid
Parameters: |
|
---|
select a couple of model and data at the Uid position in dictionary and set in self.selected value to value
Parameters: |
|
---|
Store data to fit at the psotion Uid of the fit engine
Parameters: |
|
---|
Select the type of Fit
Parameters: |
|
---|---|
Raise : | if the user does not enter ‘scipy’ or ‘park’, a valueError is raised |