Posted by
TimFeinstein on
URL: http://imagej.273.s1.nabble.com/Changing-adding-values-to-a-re-named-results-table-tp5019750p5019762.html
Aha, that’s a good approach. As far as I have learned you can have a bunch of tables open but Results is unique. Measurements always write to whichever table is called ‘Results’. There’s no way around that except kludgy renaming shenanigans.
Best,
T
Timothy Feinstein, Ph.D.
On 12/14/17, 1:14 AM, "ImageJ Interest Group on behalf of Straub, Volko A. (Dr.)" <
[hidden email] on behalf of
[hidden email]> wrote:
Thanks Tim,
This is similar to what I have started doing. Using getResult(), I now read all the values from intermediate results tables into arrays and then add these arrays as new columns to my final results table.
I just thought it would be nice if it was possible to use getResult(), setResult, etc on tables with names other than Results.
Cheers,
Volko
________________________________
From: Feinstein, Timothy N <
[hidden email]>
Sent: 13 December 2017 16:16:29
To:
[hidden email]
Subject: Re: Changing/adding values to a re-named results table
Hi Volko,
I work around that by initializing the Results table with the columns that I want, then I rename it to “ASDF Quant” or whatever. I can then use the Results table for intermediate measurements to assign values to variables that correspond to each column. When I have each variable assigned, I clear Results and rename “ASDF Quant” to “Results” and update each column. Then I rename the table to “ASDF Quant”, save it as a .csv and start another loop. Each loop overwrites the last saved .csv, so if the macro crashes I saved all the data until the crash.
Does that answer what you need?
The macro is pretty long, so I’ll send it to you and anyone who wants to check it out.
Best,
Tim
Timothy Feinstein, Ph.D.
Research Scientist
Department of Developmental Biology
University of Pittsburgh
On 12/11/17, 3:15 AM, "ImageJ Interest Group on behalf of Straub, Volko A. (Dr.)" <
[hidden email] on behalf of
[hidden email]> wrote:
Hi,
Using IJ.renameResults(name) an existing results table can be renamed to give it a more meaningful table (e.g. include the image name in the title). However, once the results table has been re-named, all the result table specific macro functions can't be used anymore (e.g. getResult, setResult, etc) as unlike print functions that can be used to print to a specified text window, result table functions don't appear to have an option to specify the table name. Is this correct or am I missing something?
Thanks,
Volko
--
ImageJ mailing list:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&data=01%7C01%7Ctnf8%40pitt.edu%7C2f67bcdc27ee417da3ef08d5406f595a%7C9ef9f489e0a04eeb87cc3a526112fd0d%7C1&sdata=HCWgTFFZavXDvsorLi2MFfrVPDOSxm4mBIzs4XH6GpE%3D&reserved=0
--
ImageJ mailing list:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&data=01%7C01%7Ctnf8%40pitt.edu%7C15b50e4fc5374ac8075008d542b9f735%7C9ef9f489e0a04eeb87cc3a526112fd0d%7C1&sdata=3ZyoMgex5vG01TGKU3GjiiweGuHkUmOKXrnjqjR%2FX0o%3D&reserved=0
--
ImageJ mailing list:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&data=01%7C01%7Ctnf8%40pitt.edu%7C15b50e4fc5374ac8075008d542b9f735%7C9ef9f489e0a04eeb87cc3a526112fd0d%7C1&sdata=3ZyoMgex5vG01TGKU3GjiiweGuHkUmOKXrnjqjR%2FX0o%3D&reserved=0
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html