set_xsstate

sherpa.astro.xspec.set_xsstate(state)[source]

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’.

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.