scijava-common
scijava-common copied to clipboard
Can't run headless script with Dataset as input parameter
Steps to reproduce :
- Create a small script :
# @Dataset data
# @Integer var
# @ImageJ ij
s = ij.op().run("stats.mean", data)
print(s)
print(var)
-
Call it with
fiji --headless --ij2 --console --run script.py "data='/home/hadim/FakeTracks.tif'" -
Got the following error :
[ERROR] For input data: incompatible object java.lang.String for type net.imagej.Dataset
See https://github.com/scifio/scifio/pull/402 and https://github.com/scifio/scifio/pull/443.