Failed
OmeroWeb.test.integration.test_thumbnails.TestThumbnails.test_base64_thumb[None] (from pytest)
Error Message
AttributeError: 'numpy.ndarray' object has no attribute 'tostring'
Stacktrace
self = <test_thumbnails.TestThumbnails object at 0x7f63848731d0>, size = None @pytest.mark.parametrize("size", [None, 100]) def test_base64_thumb(self, size): """ Test base64 encoded retrival of single thumbnail """ # Create a square image > iid = self.create_test_image(size_x=256, size_y=256, session=self.sf).id.val test/integration/test_thumbnails.py:78: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../.venv3/lib64/python3.11/site-packages/omero/testlib/__init__.py:445: in create_test_image script_utils.upload_plane(raw_pixel_store, plane_2d, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ raw_pixels_store = ae50d896-2d53-4a86-bd02-b575155c5947/5d1ccda7-2958-4217-b976-9cf43042a8e9omero.api.RawPixelsStore -t -e 1.1:tcp -h 172.18.0.12 -p 33635 -t 60000 plane = array([[ 0, 1, 2, ..., 253, 254, 255], [ 0, 1, 2, ..., 253, 254, 255], [ 0, 1, 2, ..., 25... [ 0, 1, 2, ..., 253, 254, 255], [ 0, 1, 2, ..., 253, 254, 255]], shape=(256, 256), dtype=int16) z = 0, c = 0, t = 0 def upload_plane(raw_pixels_store, plane, z, c, t): """ Upload the plane to the server attaching it to the current z,c,t of the already instantiated rawPixelStore. :param raw_pixels_store store pointing to the data. :param plane The data to upload :param z The Z-Section of the plane. :param c The C-Section of the plane. :param t The T-Section of the plane. """ byte_swapped_plane = plane.byteswap() > converted_plane = byte_swapped_plane.tostring() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'numpy.ndarray' object has no attribute 'tostring' ../../../../.venv3/lib64/python3.11/site-packages/omero/util/script_utils.py:1088: AttributeError