set_xsstate

sherpa.astro.xspec.set_xsstate(state: dict[str, Any]) None[source] [edit on github]

Restore the state of the XSPEC module.

Changed in version 4.17.1: The input state no-longer requires all the keys to be present.

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’. If a keyword is missing then that setting will not be changed.