set_xsabundances
- sherpa.astro.xspec.set_xsabundances(abundances: dict[str, float]) None [source] [edit on github]
Set the abundances used by X-Spec.
Added in version 4.17.0.
- Parameters:
abundances (dict) – The new set of abundances. The keys are the element name (e.g. ‘Fe’) and the values are the abundances. Any element that is not present is set to 0.0, and other keywords are ignored.
See also
Examples
Change the relative abundance of Chromium:
>>> abunds = get_xsabundances() >>> abunds['Cr'] = 4.2e-6 >>> set_xsabundances(abunds)