Re: undo set_par_fun

From: Daniel Dewey <dd_at_email.domain.hidden>
Date: Fri, 27 Aug 2010 11:17:42 -0400
M, 
Use the wonderful NULL :

set_par_fun("gauss(2).area",NULL);

 -dd

On Aug 27, 2010, at 11:07 AM, Maurice Leutenegger wrote:

> Hi,
> 
> how do I undo the effects of set_par_fun? Below is a minimal example of using set_par_fun to link one parameter to another, and then trying to unlink the parameter in obvious ways.
> 
> Thanks,
> 
> Maurice
> 
> 
> isis> fit_fun ("gauss(1)+gauss(2)");
> isis> set_par_fun ("gauss(2).area", "gauss(1).area*2.");
> isis> list_par;
> gauss(1)+gauss(2)
> idx  param        tie-to  freeze         value         min         max
>  1  gauss(1).area     0     0                1           0           0  photons/s/cm^2
>  2  gauss(1).center   0     0               12           0           0  A
>  3  gauss(1).sigma    0     0            0.025       1e-06           1  A
>  4  gauss(2).area     0     1                2           0           0  photons/s/cm^2
> #=>  gauss(1).area*2.
>  5  gauss(2).center   0     0               12           0           0  A
>  6  gauss(2).sigma    0     0            0.025       1e-06           1  A
> isis> set_par ("gauss(2).area", 1);
> isis> list_par;
> gauss(1)+gauss(2)
> idx  param        tie-to  freeze         value         min         max
>  1  gauss(1).area     0     0                1           0           0  photons/s/cm^2
>  2  gauss(1).center   0     0               12           0           0  A
>  3  gauss(1).sigma    0     0            0.025       1e-06           1  A
>  4  gauss(2).area     0     1                2           0           0  photons/s/cm^2
> #=>  gauss(1).area*2.
>  5  gauss(2).center   0     0               12           0           0  A
>  6  gauss(2).sigma    0     0            0.025       1e-06           1  A
> isis> untie (4);
> isis> list_par;
> gauss(1)+gauss(2)
> idx  param        tie-to  freeze         value         min         max
>  1  gauss(1).area     0     0                1           0           0  photons/s/cm^2
>  2  gauss(1).center   0     0               12           0           0  A
>  3  gauss(1).sigma    0     0            0.025       1e-06           1  A
>  4  gauss(2).area     0     1                2           0           0  photons/s/cm^2
> #=>  gauss(1).area*2.
>  5  gauss(2).center   0     0               12           0           0  A
>  6  gauss(2).sigma    0     0            0.025       1e-06           1  A
> ----
> You received this message because you are
> subscribed to the isis-users list.
> To unsubscribe, send a message to
> isis-users-request_at_email.domain.hidden> with the first line of the message as:
> unsubscribe

    ----------------------------------------------------------
    Daniel Dewey                           dd_at_email.domain.hidden    MIT Kavli Institute              Office:(617) 253-7244
    70 Vassar St., NE80-6085            Fax:(617) 253-8084  
    Cambridge, MA 02139         http://space.mit.edu/home/dd

    "Data! Data! Data!" [Sherlock Holmes] cried impatiently.
    ----------------------------------------------------------




----
You received this message because you are
subscribed to the isis-users list.
To unsubscribe, send a message to
isis-users-request_at_email.domain.hiddenwith the first line of the message as:
unsubscribe
Received on Fri Aug 27 2010 - 11:17:50 EDT

This archive was generated by hypermail 2.2.0 : Mon Sep 27 2010 - 20:26:51 EDT