Last modified: December 2025

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


AHELP for CIAO 4.18 Sherpa

list_models

Context: models

Synopsis

List the available model types.

Syntax

list_models(show: str = 'all')

Returns: list[str]

Examples

Example 1

>>> models = list_models()
>>> models[0:5]
['absorptionedge',
 'absorptiongaussian',
 'absorptionlorentz',
 'absorptionvoigt',
 'accretiondisk']

Example 2

>>> list_models('2d')
['beta2d',
 'box2d',
 'const2d',
 'delta2d',
 'devaucouleurs2d',
 'disk2d',
 'gauss2d',
 'lorentz2d',
 'normgauss2d',
 'polynom2d',
 'scale2d',
 'sersic2d',
 'shell2d',
 'sigmagauss2d']

PARAMETERS

The parameter for this function is:

Parameter Type information Definition
show { 'all', '1d', '2d', 'xspec' }, optional What type of model should be returned. The default is 'all'. An unrecognized value is treated as 'all'.

Return value

The return value from this function is:

models -- list of str


Bugs

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

See Also

info
get_functions, list_functions, list_response_ids
methods
list_iter_methods, list_methods
models
list_model_components, models, tablemodel, xs
statistics
list_priors, list_samplers