Regression
OmeroPy.test.integration.test_ishare.TestIShare.test8704 (from pytest)
Error Message
AttributeError: 'numpy.ndarray' object has no attribute 'tostring'
Stacktrace
self = <test.integration.test_ishare.TestIShare object at 0x7fdffd52a290> def test8704(self): # Owner of share owner, owner_obj = self.new_client_and_user(perms="rw----") # Different group! member, member_obj = self.new_client_and_user(perms="rw----") member_suuid = \ member.sf.getAdminService().getEventContext().sessionUuid owner_suuid = \ owner.sf.getAdminService().getEventContext().sessionUuid member.sf.getAdminService().getEventContext().groupId owner_groupId = owner.sf.getAdminService().getEventContext().groupId # just in case assert member_suuid != owner_suuid # just in case assert owner_obj.id.val != member_obj.id.val # create image by owner owner.sf.getUpdateService() > image_id = self.create_test_image(session=owner.sf).id.val ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ test/integration/test_ishare.py:990: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../.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 = 1d5c6c1a-a1e7-4c6d-881d-009900e3158e/f575e532-9b14-440a-9ba4-9d4540e3e844omero.api.RawPixelsStore -t -e 1.1:tcp -h 172.18.0.11 -p 36999 -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