Synopsis
Return the X-Spec model setting.
Syntax
get_xsxset(name)
Example
>>> set_xsxset("POW_EMIN", "0.5") >>> get_xsxset("pow_emin") '0.5'
PARAMETERS
The parameter for this function is:
Parameter | Type information | Definition |
---|---|---|
name | str | The name of the setting (converted to upper case before being sent to X-Spec). There is no check that the name is valid. |
Return value
The return value from this function is:
val -- Returns the value set by a previous call to `set_xsxset` or the empty string, if the value has not been previously set.
Notes
Due to the way X-Spec model settings work, `get_xsxset` will only return a value if it has previously been set with a call to `set_xsxset` . There is no way to retrieve the default value of a setting.
XSPEC version
CIAO 4.17 comes with support for version 12.14.0k of the XSPEC models. This can be checked with the following:
% python -c 'from sherpa.astro import xspec; print(xspec.get_xsversion())' 12.14.0k
Bugs
See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.
See Also
- modeling
- set_xsxset