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 2006

URL: http://cxc.harvard.edu/ciao3.4/get_method_expr.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 get_method_expr Context: sherpa

Synopsis

Module function to retrieve the name of the current optimization method.

Syntax

String_Type get_method_expr()

Error Return Value: NULL

Description

This function retrieves the name of the optimization method currently set in Sherpa, for use in record-keeping, GUIs, etc.

See the related Sherpa command SHOW METHOD.

Example

Display the Sherpa optimization method:

sherpa> meth1 = get_method_expr 
sherpa> print(meth1)
levenberg-marquardt
sherpa> METHOD SIMPLEX
sherpa> meth2 = get_method_expr 
sherpa> print(meth2)
simplex

Bugs

See the Sherpa bug pages online for an up-to-date listing of known bugs.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



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.