Last modified: December 2019

URL: https://cxc.cfa.harvard.edu/sherpa/ahelp/show_stat.html
AHELP for CIAO 4.12 Sherpa v1

show_stat

Context: info

Synopsis

Display the fit statistic

Syntax

show_stat(outfile=None, clobber=False)

Description

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.


Examples

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.


Changes in CIAO 4.12

PAGER environment variable is no-longer used

Paging of the screen output is now handled by Python rather than using an external tool defined by the PAGER environment variable. This means that paged output should now appear in Jupyter notebooks.


Bugs

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

See Also

filtering
show_filter
info
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