Module functions to retrieve a model stack expression.
String_Type get_source_expr([Integer_Type])
String_Type get_bg_expr([Integer_Type])
String_Type get_inst_expr([Integer_Type])
String_Type get_sinst_expr([Integer_Type])
String_Type get_binst_expr([Integer_Type])
Error Return Value: NULL
Arguments:
(1) Dataset number (default 1)
These functions get model stack expressions;
get_sinst_expr and get_binst_expr
get instrument model stack expressions for the source dataset only,
and the background dataset only, respectively.
See the related Sherpa commands
SOURCE,
BACKGROUND,
and
INSTRUMENT for more information.
Specify the source model stack expression for dataset 3, then retrieve it:
sherpa> PARAMPROMPT OFF
sherpa> GAUSS[g]
sherpa> POW[p]
sherpa> () = set_source_expr(3,"p+g")
sherpa> get_source_expr(3)
(p + g)
Specify and retrieve a source model stack expression for dataset 1:
sherpa> () = set_source_expr("xswabs[xs1]*(pow[p]+gauss[g])")
sherpa> get_source_expr()
(xs1 * (p + g))
- sherpa
-
autoest,
background,
create,
create_model,
createparamset,
fit,
freeze,
get_defined_models,
get_model_params,
get_models,
get_num_par,
get_par,
getx,
gety,
guess,
instrument,
integrate,
is_paramset,
jointmode,
kernel,
lineid,
linkparam,
mdl,
modelexpr,
modelstack,
nestedmodel,
noise,
paramprompt,
paramset,
pileup,
rename,
run_fit,
set_par,
set_paramset,
set_stackexpr,
source,
thaw,
truncate,
unlink
|