Last modified: December 2023

URL: https://cxc.cfa.harvard.edu/sherpa/ahelp/show_model.html
Jump to: Description · PARAMETERS · Bugs · See Also


AHELP for CIAO 4.16 Sherpa

show_model

Context: info

Synopsis

Display the model expression used to fit a data set.

Syntax

show_model(id=None, outfile=None, clobber=False)

id - int or str, optional
outfile - str, optional
clobber - bool, optional

Description

This displays the model used to fit the data set, that is, the expression set by `set_model` or `set_source` combined with any instrumental responses, together with the parameter values of the model. The `show_source` function displays just the source expression, without the instrumental components (if any).


PARAMETERS

The parameters for this function are:

Parameter Definition
id The data set. If not given then all source expressions are displayed.
outfile 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 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).

Bugs

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

See Also

filtering
show_filter
info
get_functions, list_bkg_ids, list_functions, show_all, show_bkg_model, show_bkg_source, show_conf, show_covar, show_data, show_fit, show_method, show_proj, show_source, show_stat
modeling
set_model