Clear out the current Sherpa session.
cleanfunction removes all data sets and model assignments, and restores the default settings for the optimisation and fit statistic.
Changed in version 4.15.0: The model names are now removed from the global symbol table.
After the call to
bgndvariables will be removed, so accessing them would cause a NameError.
>>> set_source(gauss1d.line + const1d.bgnd) >>> bgnd.c0.min = 0 >>> print(line) >>> clean()