Re:

From: John Houck <houck_at_email.domain.hidden>
Date: Wed, 4 Jun 2008 10:56:54 -0400
On Fri, May 30, 2008 at 16:15 -0400, rgibson_at_email.domain.hidden> I get an error from conf_joint which seems like it should not be happening,
> since I don't set any of the input parameters directly.
> 
> I'm using: _isis_version = 10408
> 
> Thanks,
> Rob
> 
> --------------------
> 
>       set_fit_method("lmdif"); thaw([8, 3, 5, 6]);
>       px = conf_grid(8, 20, 23, 10);
>       py = conf_grid(3, -4, 4, 24);
>       info.save = &save_hook;
>       map = conf_map_counts(px, py, info);
> isis>       t0 = conf_joint(map);
> Array index 1 (value=10) out of allowed range 0<=index<10
> /bulk/woodruff2/rgibson/isisnew/isis-1.4.8/share/fit-cmds.sl:2161:conf_joint:Invalid
> Index
> 2.3
> 0
> isis> print(map);
>     chisqr = Double_Type[24,10]
>     px = Struct_Type with 4 fields
>     py = Struct_Type with 4 fields
>     best = 170.615
>     px_best = 21
>     py_best = 3.99996


The appended patch for share/fit-cmds.sl should fix this problem.

Thanks,
-John

--- share/fit-cmds.sl	2007-09-17 15:16:55.463879000 -0400
+++ /tmp/fit-cmds.sl	2008-06-04 10:49:56.000000000 -0400
_at_email.domain.hidden    ys = generate_grid (py.min, py.max, py.num);
 
    variable pxmin, pxmax, pymin, pymax;
-   pxmin = [dims[0]-1, 0];
+   pxmin = [dims[1]-1, 0];
    pxmax = [0, 0];
-   pymin = [0, dims[1]-1];
+   pymin = [0, dims[0]-1];
    pymax = [0, 0];
 
    variable i, j;
 
-   _for (1, dims[1]-1, 1)
+   _for (1, dims[0]-1, 1)
      {
         j = ();
-        _for (1, dims[0]-1, 1)
+        _for (1, dims[1]-1, 1)
           {
              i = ();
 	     if (i <= pxmin[0])

----
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 Wed Jun 04 2008 - 10:57:01 EDT

This archive was generated by hypermail 2.2.0 : Wed Jun 04 2008 - 10:59:23 EDT