Login  Register

Python/Jython lists to results table

Posted by Andreas Rzepecki on Oct 26, 2013; 5:30pm
URL: http://imagej.273.s1.nabble.com/Python-Jython-lists-to-results-table-tp5005330.html

Hello together,

in my current plugin for Fiji I filled three python/jython lists with several values.

e.g.:

a_list = [1, 2, 3]
b_list = [1, 2, 3]
c_list = [1, 2, 3]

Now I tried to print this into a results table (with columns a, b, c). Using the addValue() command leads to: "2nd arg can't be coerced to String" while using Array.show() macro leads to: "type object 'java.lang.reflect.Array' has no attribute 'show'". At the moment I am a bit confused. Do I have to use the addValue() command with iteration through every object of the lists or is there a better way to do this? Thank you in advance.

Best regards

Andreas

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