get_quality¶
-
sherpa.astro.ui.
get_quality
(id=None, bkg_id=None)¶ Return the quality flags for a PHA 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.
- bkg_id (int or str, optional) – Set if the quality flags should be taken from a background associated with the data set.
Raises: sherpa.utils.err.ArgumentErr
– If the data set does not contain a PHA data set.See also
fit()
- Fit one or more data sets.
get_grouping()
- Return the grouping array for a PHA data set.
ignore_bad()
- Exclude channels marked as bad in a PHA data set.
set_quality()
- Apply a set of quality flags to a PHA data set.
Examples
Copy the quality array from the default data set to data set 2:
>>> qual1 = get_quality() >>> set_quality(2, qual1)
Return the quality array of the background component labelled 2 for the ‘histate’ data set:
>>> qual = get_quality('histate', bkg_id=2)