| AHELP for CIAO 4.5 Sherpa v1 | unlink |
Context: modeling |
Synopsis
Remove a link between model parameters
Syntax
unlink( par )
Description
The unlink command removes a link between two model parameters.
- par - the model parameter to unlink
When a link is removed between two model parameters, the parameter value is set to that of the parameter to which it had been linked. When a link is removed between a model parameter and a model stack, the parameter is set to the value it had before that link was established.
A link between two model parameters is established using the link command ("ahelp link").
Example 1
sherpa> set_source(gauss1d.g1 + gauss1d.g2) sherpa> link(g1.ampl, 0.5*g2.ampl) sherpa> show_model() ... g1.ampl linked 0.5 expr: (0.5 * g2.ampl) sherpa> unlink(g1.ampl) sherpa> show_model() ... g1.ampl thawed 1 -3.4e+38 3.4e+38
Link the amplitudes of two Gaussian models, then remove the link.
Example 2
sherpa> link(modelc.3, 2*modeld.3 - modele.3) sherpa> unlink(modelc.3)
Create a link to a model expression, then remove the link.
Bugs
See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

![[Sherpa Logo]](../imgs/sherpa_logo_navbar.gif)