when using OUTPUT script parameters, these get conveniently summarized in a IJ2-result table.
I would like to grab this table and save it to disk as e.g. *.csv, but I am not certain how to do so.
I tested different combinations from a related post, but unfortunately did not figure out the proper combination. Here is the last thing I tried, which fails for me with an error “‘NoneType’ object has no attribute ‘get’”.
#@ OUTPUT Integer result1 #@ OUTPUT String result2 #@ IOService io #@ File (style="save") outFile #@ DisplayService ds from net.imagej.table import TableDisplay result1 = 3 result2 = "circle" active_display = ds.getActiveDisplay(TableDisplay) active_table = active_display.get(0).class io.save(active_table, outFile.getPath())
is this possible and if so, how? Thanks for the help!