clean

sherpa.ui.clean()

Clear out the current Sherpa session.

The clean function removes all data sets and model assignments, and restores the default settings for the optimisation and fit statistic.

See also

save()
Save the current Sherpa session to a file.
restore()
Load in a Sherpa session from a file.
sherpa.astro.ui.save_all()
Save the Sherpa session as an ASCII file.

Examples

>>> clean()