set_syserror

sherpa.ui.set_syserror(id, val=None, fractional=False)

Set the systematic errors on the dependent axis of a data set.

Parameters:
  • id (int or str, optional) – The identifier for the data set to use. If not given then the default identifier is used, as returned by get_default_id.
  • val (array or scalar) – The systematic error.
  • fractional (bool, optional) – If False (the default value), then the val parameter is the absolute value, otherwise the val parameter represents the fractional error, so the absolute value is calculated as get_dep() * val (and val must be a scalar).

See also

load_staterror()
Set the statistical errors on the dependent axis of a data set.
load_syserror()
Set the systematic errors on the dependent axis of a data set.
set_staterror()
Set the statistical errors on the dependent axis of a data set.
get_error()
Return the errors on the dependent axis of a data set.

Notes

The function does not follow the normal Python standards for parameter use, since it is designed for easy interactive use. When called with a single un-named argument, it is taken to be the val parameter. If given two un-named arguments, then they are interpreted as the id and val parameters, respectively.

Examples

Set the systematic error for the default data set to the value in dys (a scalar or an array):

>>> set_syserror(dys)

Set the systematic error on the ‘core’ data set to be 5% of the data values:

>>> set_syserror('core', 0.05, fractional=True)