Turns on/off prompting for model parameter values.
sherpa> PARAMPROMPT {ON | OFF}
By default, prompting for model parameter values is ON.
However, when an Sherpa script file name is provided on the UNIX command line
(e.g. unix> sherpa example.script) or is provided as the
argument of a USE command,
prompting for model parameter values is automatically turned off.
For more information about parameter prompting, see the CREATE command.
Turn off parameter prompting; set parameter values using the model language syntax:
sherpa> PARAMPROMPT OFF
Model parameter prompting is off
sherpa> SOURCE 2 = POW[modele]
sherpa> modele.ampl = 2.3
Call and execute Sherpa script; set parameter values using the model language syntax:
sherpa> $more example.script
# This is my sherpa script
READ DATA example.dat
POLY[modela]
SOURCE = modela
FIT
sherpa> USE example.script
powll: v1.2
powll: initial function value = 3.25453E+02
powll: converged to minimum = 9.80351E+01 at iteration = 2
powll: final function value = 9.80351E+01
modela.c0 10.4657
sherpa>
This example shows that when a Sherpa script is called and
executed, prompting for model parameter values
is automatically turned off.
- sherpa
-
autoest,
background,
create,
create_model,
createparamset,
fit,
freeze,
get_defined_models,
get_model_params,
get_models,
get_num_par,
get_par,
get_stackexpr,
getx,
gety,
guess,
instrument,
integrate,
is_paramset,
jointmode,
kernel,
lineid,
linkparam,
mdl,
modelexpr,
modelstack,
nestedmodel,
noise,
paramset,
pileup,
rename,
run_fit,
set_par,
set_paramset,
set_stackexpr,
source,
thaw,
truncate,
unlink
|