show_fit¶
-
sherpa.ui.
show_fit
(outfile=None, clobber=False)¶ 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: - outfile (str, 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.
- clobber (bool, 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 isFalse
.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.
Notes
When outfile is
None
, the text is displayed via an external program to support paging of the information. The program used is determined by thePAGER
environment variable. IfPAGER
is not found then ‘/usr/bin/more’ is used.