pack_pha¶
-
sherpa.astro.ui.
pack_pha
(id=None)¶ Convert a PHA data set into a file structure.
- Parameters
id (int or str, optional) – The data set to use. If not given then the default identifier is used, as returned by get_default_id.
- Returns
The return value depends on the I/O library in use.
- Return type
pha
- Raises
sherpa.utils.err.ArgumentErr – If the data set does not contain PHA data.
See also
load_pha()
Load a file as a PHA data set.
set_data()
Set a data set.
unpack_pha()
Create a PHA data structure.