imagej / imagej-modelzoo

BSD 2-Clause "Simplified" License
6 stars 4 forks source link

Unclear error message for no open images, when loading model #7

Open nunopimpaomartins opened 3 years ago

nunopimpaomartins commented 3 years ago

A confusing message pops-up when attempting to load a bioimage.io model without open images. "A RandomAccessibleInterval is required but none exist."

bioimage_predict_noimage

Happens both through File > Import > bioimage.io.zip and Plugins > bioimage.io > bioimage.io prediction

imagejan commented 3 years ago

The wording of the error message has to be fixed on the SciJava side, see also: https://github.com/scijava/scijava-common/issues/380#issuecomment-595975277.

Alternatively, the RandomAccessibleInterval parameter in the respective command can be declared required=false, and possible null values are handled in a tolerant way.