Failed
OmeroPy.test.integration.test_exporter.TestExporter.testBasic (from pytest)
Error Message
AttributeError: 'numpy.ndarray' object has no attribute 'tostring'
Stacktrace
self = <test.integration.test_exporter.TestExporter object at 0x7fc46b024a10> def testBasic(self): """ Runs a simple export through to completion as a smoke test. """ session = self.client.getSession() > image = self.create_test_image(100, 100, 1, 1, 1, session) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ test/integration/test_exporter.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../.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 = ed5e6034-7b9b-4726-a4f0-9b8b22d6603d/f7a163e1-c40e-4f27-9b84-3bf6e6d1f827omero.api.RawPixelsStore -t -e 1.1:tcp -h 172.18.0.12 -p 33635 -t 60000 plane = array([[ 0, 1, 2, ..., 97, 98, 99], [ 0, 1, 2, ..., 97, 98, 99], [ 0, 1, 2, ..., 97, 98, 99], ...7, 98, 99], [ 0, 1, 2, ..., 97, 98, 99], [ 0, 1, 2, ..., 97, 98, 99]], shape=(100, 100), 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