delete_model

sherpa.ui.delete_model(id=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 or str, 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

clean()
Clear all stored session data.
delete_data()
Delete a data set by identifier.
get_default_id()
Return the default data set identifier.
set_model()
Set the source model expression for a data set.
show_model()
Display 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')