problem importing results table

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

problem importing results table

Aryeh Weiss
I tried to import a results table with the following macro code:

path_comp = File.openDialog("Select a results file");
run("Results...", "open="+path_comp);


This works fine in 1.44b, but in 1.44c15 it fails.
Also import>results fails (just does nothing).

This occurs both when I use Fiji and Imagej (ie, it is not Fiji specific).

Other relevant info: I am using OSX 10.5.8

--aryeh
--
Aryeh Weiss
School of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051
Reply | Threaded
Open this post in threaded view
|

Re: problem importing results table

Rasband, Wayne (NIH/NIMH) [E]
On Jun 14, 2010, at 9:37 AM, Aryeh Weiss wrote:

> I tried to import a results table with the following macro code:
>
> path_comp = File.openDialog("Select a results file");
> run("Results...", "open="+path_comp);
>
> This works fine in 1.44b, but in 1.44c15 it fails.
> Also import>results fails (just does nothing).
>
> This occurs both when I use Fiji and Imagej (ie, it is not Fiji specific).
>
> Other relevant info: I am using OSX 10.5.8

This is fixed in the 1.44c16 daily build. The first argument in the run() call must be "Results... " (note the extra space) or "Measurements..." (the previous command name). The extra space is how ImageJ distinguishes the File>Import>Results... command from File>Save As>Results.... If the file name ends in ".csv" (comma separated values) or ".xls" (tab-delimeted text file) then you can use open(path_comp), which has the advantage of working even when the path contains spaces.


-wayne