show_fit

sherpa.astro.ui.show_fit(outfile=None, clobber=False) None

Summarize the fit results.

Display the results of the last call to fit, including: optimization method, statistic, and details of the fit (it does not reflect any changes made after the fit, such as to the model expression or fit parameters).

Parameters:
outfilestr, optional

If not given the results are displayed to the screen, otherwise it is taken to be the name of the file to write the results to.

clobberbool, optional

If outfile is not None, then this flag controls whether an existing file can be overwritten (True) or if it raises an exception (False, the default setting).

Raises:
sherpa.utils.err.IOErr

If outfile already exists and clobber is False.

See also

fit

Fit one or more data sets.

get_fit_results

Return the results of the last fit.

list_data_ids

List the identifiers for the loaded data sets.

list_model_ids

List of all the data sets with a source expression.

show_all

Report the current state of the Sherpa session.