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,id)
engine.set_param( model,model.name, pars)
engine.set_model(model,id)
chisqr1, out1, cov1=engine.fit(pars,qmin,qmax)
Perform the fit
return list of data
return the self.selected value of the fit problem of id
Parameters: | id – the id of the problem |
---|
remove fitarrange in id
select a couple of model and data at the id position in dictionary and set in self.selected value to value
Parameters: | value – the value to allow fitting. can only have the value one or zero |
---|
Store data to fit at the psotion id of the fit engine
Parameters: |
|
---|
Select the type of Fit
Parameters: | word – the keyword to select the fit type |
---|---|
Raise : | if the user does not enter ‘scipy’ or ‘park’, a valueError is raised |
store a model model to fit at the position id of the fit engine