[ImageJ-bugs] [Bug 1157] New: getResultString() returns null on re-opened Results table
bugzilla at fiji.sc
bugzilla at fiji.sc
Wed Sep 9 02:15:03 CDT 2015
http://fiji.sc/bugzilla/show_bug.cgi?id=1157
Bug ID: 1157
Summary: getResultString() returns null on re-opened Results
table
Product: ImageJ
Version: unspecified
Hardware: PC
OS: Windows
Status: NEW
Severity: normal
Priority: P5
Component: Legacy
Assignee: imagej-bugs at imagej.net
Reporter: jan.eglinger at gmail.com
As noticed by 'user3772045' on stackoverflow.com [1], the
`getResultString("Column", row)` returns `null` when run on a results table
that was opened from a file.
The following macro reproduces the issue:
row = nResults;
dir = getDirectory("temp");
setResult("String", row, "xyz");
setResult("Number", row, 5.0);
// get results from new table
print(getResultString("String", 0));
print(getResult("Number", 0));
saveAs("Results", dir + "Results.xls");
open(dir + "Results.xls");
// get results from re-opened table
print(getResultString("String", 0));
print(getResult("Number", 0));
On a related note, repeated runs of this macro (with the results table open)
result in unexpected behaviour: a new "String" column is created, and the
string and number values get filled into the wrong columns.
Cheers,
Jan
[1]: http://stackoverflow.com/q/32468347/1919049
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-bugs/attachments/20150909/9583b093/attachment.html>
More information about the Imagej-bugs
mailing list