delete_model
- sherpa.ui.delete_model(id: IdType | None = None) None
Delete the model expression for a data set.
This removes the model expression, created by
set_model, for a data set. It does not delete the components of the expression.- Parameters:
id (int, str, or None, optional) – The data set containing the source expression. If not given then the default identifier is used, as returned by
get_default_id.
See also
cleanClear all stored session data.
delete_dataDelete a data set by identifier.
get_default_idReturn the default data set identifier.
set_modelSet the source model expression for a data set.
show_modelDisplay the source model expression for a data set.
Examples
Remove the model expression for the default data set:
>>> delete_model()
Remove the model expression for the data set with the identifier called ‘src’:
>>> delete_model('src')