Failed
OmeroPy.test.integration.test_thumbnailPerms.TestThumbnailPerms.testReadOnly10618RootWithGrpCtxButNoLoad (from pytest)
Error Message
AttributeError: 'numpy.ndarray' object has no attribute 'tostring'
Stacktrace
self = <test.integration.test_thumbnailPerms.TestThumbnailPerms object at 0x7fc474908dd0> def testReadOnly10618RootWithGrpCtxButNoLoad(self): group = self.new_group(perms="rwr---") grp_ctx = {"omero.group": str(group.id.val)} > self.assert10618(group, self.root, False, grp_ctx) test/integration/test_thumbnailPerms.py:241: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test/integration/test_thumbnailPerms.py:205: in assert10618 privateImage = self.create_test_image(session=owner.sf) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../../../.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 = 0dd751c1-f527-485b-bc39-5a12c91f5298/8a0331a9-851f-4233-991f-be364423d232omero.api.RawPixelsStore -t -e 1.1:tcp -h 172.18.0.12 -p 33635 -t 60000 plane = array([[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [ 0, 1, 2, 3, 4, 5, 6, 7, 8, ..., 10, 11, 12, 13, 14, 15], [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]], 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