list_priors

sherpa.astro.ui.list_priors()

Return the priors set for model parameters, if any.

Returns:

priors – The dictionary of mappings between parameters (keys) and prior functions (values) created by set_prior.

Return type:

dict

See also

get_prior

Return the prior function for a parameter (MCMC).

set_prior

Set the prior function to use with a parameter.

Examples

In this example a prior on the PhoIndex parameter of the pl instance has been set to be a gaussian:

>>> list_priors()
{'pl.PhoIndex': <Gauss1D model instance 'gauss1d.gline'>}