About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2007

URL: http://cxc.harvard.edu/sherpabeta/get_full_model.py.html
AHELP for Sherpa 4.0 Beta get_full_model Context: py.sherpa

Synopsis

Return the whole model associated with a Sherpa data set ID.

Syntax

get_full_model([id=1])

Description

This function gives user access to the whole model associated with a given data set ID. (If no ID is given, then the model for the first data set is returned). If instrument models are part of the whole expression, then those models are included.

Example

sherpa> get_full_model()
sherpa> get_full_model(1)
sherpa> get_full_model("src")

If called without arguments, then the model associated with the first data set ID is returned. The user can also specify the desired data set ID, and get back information for that model.

	  set_model(gauss1d.g1 + gauss1d.g2)
	  print get_full_model()
	  (g1 + g2)
	  Param        Type          Value          Min          Max
	  -----        ----          -----          ---          ---
	  g1.fwhm      thawed           10       1e-120       1e+120           
	  g1.pos       thawed            0      -1e+120       1e+120           
	  g1.ampl      thawed            1      -1e+120       1e+120           
	  g2.fwhm      thawed           10       1e-120       1e+120           
	  g2.pos       thawed            0      -1e+120       1e+120           
	  g2.ampl      thawed            1      -1e+120       1e+120           
	  

Bugs

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

Last modified: December 2007



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.