get_prior

sherpa.ui.get_prior(par)

Return the prior function for a parameter.

Parameters:par (a sherpa.models.parameter.Parameter instance) – A parameter of a model instance.
Returns:The function or parameter instance set by a previous call to set_prior.
Return type:prior
Raises:ValueError – If a prior has not been set for the parameter.

See also

set_prior()
Set the prior function to use with a parameter.

Examples

>>> pfunc = get_prior(bgnd.c0)