scijava-common icon indicating copy to clipboard operation
scijava-common copied to clipboard

Can't run headless script with Dataset as input parameter

Open hadim opened this issue 9 years ago • 1 comments

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

hadim avatar Dec 04 '16 21:12 hadim

See https://github.com/scifio/scifio/pull/402 and https://github.com/scifio/scifio/pull/443.

imagejan avatar Nov 16 '20 13:11 imagejan