|
|
Erase data and model settings in a Sherpa session
The clean() function erases all data set IDs and model assignments
established in a Sherpa session. This function accepts no arguments.
The clean() function resets a Sherpa
session by erasing all user-defined data and model settings.
sherpa> print(get_data(2));
name = 1843.pi
channel = Float64[1024]
counts = Float64[1024]
staterror = None
syserror = None
bin_lo = None
bin_hi = None
grouping = None
quality = None
exposure = 7854.46647487
backscal = 0.00085461636003
areascal = 1.0
grouped = False
subtracted = False
units = energy
response_ids = [1]
background_ids = []
sherpa> show_model(2);
Model: 1
apply_rmf(apply_arf((7854.46647487 * powlaw1d.p1)))
Param Type Value Min Max Units
----- ---- ----- --- --- -----
p1.gamma thawed 1 -10 10
p1.ref frozen 1 -3.40282e+38 3.40282e+38
p1.ampl thawed 1 0 3.40282e+38
sherpa> clean();
sherpa> print(get_data(2));
IdentifierError'>: data set 2 has not been set
sherpa> show_model(2);
(blank)
- py.sherpa
-
get_staterror,
get_syserror
- sl.sherpa
-
add_user_pars,
calc_chisqr,
calc_data_sum,
calc_data_sum2d,
calc_energy_flux,
calc_ftest,
calc_kcorr,
calc_mlr,
calc_model_sum,
calc_model_sum2d,
calc_photon_flux,
calc_source_sum,
calc_source_sum2d,
calc_stat,
contour,
contour_data,
contour_model,
contour_ratio,
contour_resid,
copy_data,
create_model_component,
dataspace1d,
dataspace2d,
delete_bkg_model,
delete_data,
delete_model,
delete_model_component,
delete_psf,
eqwidth,
get_axes,
get_bkg_plot,
get_counts,
get_data,
get_data_plot,
get_default_id,
get_dep,
get_dims,
get_error,
get_filter,
get_model,
get_model_autoassign_func,
get_model_plot,
get_num_par,
get_order_plot,
get_par,
get_pileup_model,
get_rate,
get_ratio,
get_resid,
get_source,
get_specresp,
get_staterror,
get_syserror,
group,
histogram1d,
histogram2d,
image_data,
image_model,
image_source,
integrate,
link,
list_data_ids,
list_model_ids,
list_response_ids,
load_ascii,
load_data,
load_table_model,
load_user_model,
plot_data,
plot_model,
plot_source,
rebin,
reset,
set_bkg_model,
set_data,
set_model,
set_model_autoassign_func,
set_pileup_model,
set_source,
ungroup,
unpack_ascii,
unpack_data
|