Bug in run("Distribution...", ... )

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

Bug in run("Distribution...", ... )

Olivier Burri
Dear list,

Is there a particular way to tell the

run("Distribution...", "parameter=[Whatever] or=10 and=0-0");

Command to have an user-defined interval that starts with negative values?

When left to calculate the range automatically, it works fine, but when the range is specified manually, whether as a macro or through the Results->Distribution Dialog Box, it does not read negative numbers.

Thanks for letting us know.

All the best

Oli

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Bug in run("Distribution...", ... )

Rasband, Wayne (NIH/NIMH) [E]
On Apr 30, 2013, at 4:30 AM, Burri Olivier wrote:

> Dear list,
>
> Is there a particular way to tell the
>
> run("Distribution...", "parameter=[Whatever] or=10 and=0-0");
>
> Command to have an user-defined interval that starts with negative values?
>
> When left to calculate the range automatically, it works fine, but when the range is specified manually, whether as a macro or through the Results->Distribution Dialog Box, it does not read negative numbers.

This bug is fixed in the ImageJ 1.47q daily build, thanks to Michael Schmid, who suggested changing

    String[] minAndMax = Tools.split(range, " -");

to

    String[] minAndMax = range.replaceAll("([0-9.])[\t ]*-", "$1,").split(",");

in ij.plugin.Distribution.java.

-wayne

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