fitproblem

sans.perspectives.fitting.fitproblem

class sans.perspectives.fitting.fitproblem.FitProblem

FitProblem class allows to link a model with the new name created in _on_model, a name theory created with that model and the data fitted with the model. FitProblem is mostly used as value of the dictionary by fitting module.

add_fit_data(data)

save a copy of the data select to fit

Parameters:
  • data – data selected
add_plotted_data(data)

save a copy of the data select to fit

Parameters:
  • data – data selected
clear_model_param()
clear constraint info
clone()
copy fitproblem
get_fit_data()
get_index()
get index of the model name
get_model()
Returns:saved model
get_model_param()
return list of couple of parameter name and value
get_name()
get_plotted_data()
Returns:list of data dList
get_range()
Returns:fitting range
get_scheduled()
return true or false if a problem as being schedule for fitting
get_smearer()
return smear object
save_model_name(name)
schedule_tofit(schedule=0)
set schedule to true to decide if this fit must be performed
set_index(index)
set index of the model name
set_model(model)

associates each model with its new created name

Parameters:
  • model – model selected
  • name – name created for model
set_model_param(name, value=None)

Store the name and value of a parameter of this fitproblem’s model

Parameters:
  • name – name of the given parameter
  • value – value of that parameter
set_range(qmin=None, qmax=None)
set fitting range
set_smearer(smearer)

save reference of smear object on fitdata

Parameters:
  • smear – smear object from DataLoader

Table Of Contents

Previous topic

fitpanel

Next topic

fitting

This Page