Quantcast

possible bug concerning re-imported result tables

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

possible bug concerning re-imported result tables

Volker Baecker
Hello,
I think this might be a bug in ImageJ. What I try to do is to save a
results table which is not the system results table (Results). Later I
want to reload the table and continue to work on it. I do
File>Import>Table and add new lines to the table using print. However
when I try to save or duplicate the table now, only the original lines
are there, all lines added since the import disappear.

The macro in the attachment demonstrates the problem. What I would
expect is to have a table with two lines in the end. But there is only
one line.

Best regards,
Volker Bäcker

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

test_import_table.ijm (742 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: possible bug concerning re-imported result tables

Wayne Rasband-2
> On Feb 24, 2017, at 5:32 AM, Volker Baecker <[hidden email]> wrote:
>
> Hello,
> I think this might be a bug in ImageJ. What I try to do is to save a
> results table which is not the system results table (Results). Later I
> want to reload the table and continue to work on it. I do
> File>Import>Table and add new lines to the table using print. However
> when I try to save or duplicate the table now, only the original lines
> are there, all lines added since the import disappear.
>
> The macro in the attachment demonstrates the problem. What I would
> expect is to have a table with two lines in the end. But there is only
> one line.

This bug is fixed in the latest ImageJ daily build (1.51k18). It would also be good to change saveAs(“Results”,…) in the example macro to saveAs("Text”,…) or the macro will fail if the “Results” window is open.

-wayne

   folder = "/Users/wayne/"
   if (!isOpen("points"))
      run("Table...", "name=points width=350 height=250");
   print("[points]", "\\Headings:n\tx\ty");
   print("[points]", "1\t340\t460");
   selectWindow("points");
   saveAs("Text", folder + "/points.xls");
   run("Close");
   run("Table... ", "open="+folder+"/points.xls");
   print("[points.xls]", "2\t256\t125");
   selectWindow("points.xls");
   saveAs("Text", folder + "/points.xls");
   run("Close");
   run("Table... ", "open="+folder+"/points.xls")

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Loading...