set_xsstate
- sherpa.astro.xspec.set_xsstate(state: dict[str, Any]) None [source] [edit on github]
Restore the state of the XSPEC module.
- Parameters:
state (dict) – The current settings for the XSPEC module. This is expected to match the return value of
get_xsstate
, and so uses the keys: ‘abund’, ‘chatter’, ‘cosmo’, ‘xsect’, ‘modelstrings’, and ‘paths’.
See also
get_xsstate
,set_xsabund
,set_xschatter
,set_xscosmo
,set_xsxsect
,set_xsxset
Notes
The state of the XSPEC module will only be changed if all the required keys in the dictionary are present. All keys apart from ‘paths’ are required.