The delete_data() function deletes a data set from a Sherpa
session by data set ID.
-
id - the id of the data set to use; if not given, uses the default dataset id (id=1 by default, see "ahelp get_default_id")
When called with no arguments, delete_data() will remove
the default data set from the Sherpa session.
sherpa> print(get_data().name)
obsid_1843.pi
sherpa> delete_data()
sherpa> print(get_data().name)
IdentifierError'>: data set 1 has not been set
sherpa> delete_data("src")
If supplied with a data set ID, delete_data()
will remove the specified data set.
- py.sherpa
-
calc_data_sum,
calc_data_sum2d,
calc_ftest,
calc_kcorr,
calc_mlr,
calc_model_sum2d,
calc_source_sum2d,
clean,
contour,
contour_data,
contour_ratio,
copy_data,
dataspace1d,
dataspace2d,
get_axes,
get_bkg_plot,
get_counts,
get_data,
get_data_plot,
get_default_id,
get_dep,
get_dims,
get_error,
get_filter,
get_rate,
get_ratio,
get_resid,
get_specresp,
group,
histogram1d,
histogram2d,
image_data,
list_data_ids,
list_response_ids,
load_ascii,
load_data,
plot_data,
rebin,
set_data,
ungroup,
unpack_ascii,
unpack_data
|