Last modified: November 2016

Jump to: Description · Examples · Bugs · See Also

AHELP for CIAO 4.11 Sherpa v1


Context: info


Display the fit statistic


show_stat(outfile=None, clobber=False)


The show_stat command displays the current fit statistic.

The first line of the command output looks like

Statistic: CStat

where the second word will reflect the name of the chosen statistic. It will be followed by the contents of the Python docstring for the statistic object, which is similar to the "ahelp" output for that statistic.

Controlling the paging of screen output

The behavior of the screen output is determined by the user's $PAGER environment variable setting, which is usually a variant of "more." To disable paging within show_all() - i.e. print the entire contents, even if it scrolls offscreen - change this setting to "cat" before starting Sherpa:

unix% setenv PAGER cat
unix% sherpa


Example 1

sherpa> show_stat()

Print the statistic to the screen.

Example 2

sherpa> show_stat("sherpa.stat", clobber=True)

Write the fit statistic information to the file "sherpa.stat", clobbering any existing file with the same name.


See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

See Also

list_bkg_ids, list_functions, show_all, show_bkg_model, show_bkg_source, show_conf, show_covar, show_data, show_fit, show_method, show_model, show_proj, show_source