diff --git a/tests/test_image_conversion.py b/tests/test_image_conversion.py index e4c4686e..188b4691 100644 --- a/tests/test_image_conversion.py +++ b/tests/test_image_conversion.py @@ -5,7 +5,7 @@ import pytest import scyjava as sj import xarray as xr -from jpype import JArray, JLong +from jpype import JLong import imagej.convert as convert import imagej.dims as dims @@ -379,8 +379,7 @@ def test_dataset_converts_to_xarray(ij): def test_bittype_img_to_ndarray(ij): ArrayImgs = sj.jimport("net.imglib2.img.array.ArrayImgs") - dims = JArray(JLong)(3) - dims[:] = [10, 10, 10] + dims = JLong[:] @ [10, 10, 10] j_img = ArrayImgs.bits(dims) p_img = ij.py.from_java(j_img) assert p_img.dtype == np.bool_