list_data_ids¶
-
sherpa.astro.ui.
list_data_ids
()¶ List the identifiers for the loaded data sets.
Returns: ids – A list of the data set identifiers that have been created by commands like load_data and load_arrays. Return type: list of int or str See also
delete_data()
- Delete a data set by identifier.
load_arrays()
- Create a data set from arrays of data.
load_data()
- Create a data set from a file.
Examples
In this case only one data set has been loaded:
>>> list_data_ids() [1]
Two data sets have been loaded, using string identifiers:
>>> list_data_ids() ['nucleus', 'jet']