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’, ‘abundances’, and ‘paths’. If a keyword is missing then that setting will not be changed.
See also
get_xsstate,set_xsabund,set_xschatter,set_xscosmo,set_xsxsect,set_xsxset