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.

clear_model_param()

clear constraint info

clone()

copy fitproblem

get_enable2D()
get_fit_data()
get_fit_data_list()
get_fit_tab_caption()
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_pointer_to_fitproblem()

return dictionary of id of fitproblem

get_range()
Returns:fitting range
get_result()

get result

get_scheduled()

return true or false if a problem as being schedule for fitting

get_smearer()

return smear object

get_theory_data()
Returns:list of data dList
save_model_name(name)
schedule_tofit(schedule=0)

set schedule to true to decide if this fit must be performed

set_enable2D(enable2D)
set_fit_data(data)

save a copy of the data select to fit

Parameters:data – data selected
set_fit_data_list(data_list)

save a copy of a list of data

Parameters:data_list – list of data
set_fit_tab_caption(caption)
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_pointer_to_fitproblem(data_id, page_id)
set_range(qmin=None, qmax=None)

set fitting range

set_result(result)

set a list of result

set_smearer(smearer)

save reference of smear object on fitdata

Parameters:smear – smear object from DataLoader
set_theory_data(data)

save a copy of the data select to fit

Parameters:data – data selected

Table Of Contents

Previous topic

fitpanel

Next topic

fitting

This Page