Skip to content

Commit 2427b23

Browse files
committed
Use frombuffer
1 parent 8cd1327 commit 2427b23

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

components/tools/OmeroPy/test/integration/tablestest/test_backwards_compatibility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def checkMaskCol(self, test):
8181
def arr(x):
8282
import numpy
8383
import tables
84-
return numpy.frombytes(x, count=len(x), dtype=tables.UInt8Atom())
84+
return numpy.frombuffer(x, count=len(x), dtype=tables.UInt8Atom())
8585

8686
assert 1 == test.imageId[0]
8787
assert 3 == test.theZ[0]

components/tools/OmeroPy/test/integration/tablestest/test_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def checkMaskCol(self, test):
5151
def arr(x):
5252
import numpy
5353
import tables
54-
return numpy.frombytes(x, count=len(x), dtype=tables.UInt8Atom())
54+
return numpy.frombuffer(x, count=len(x), dtype=tables.UInt8Atom())
5555

5656
assert 1 == test.imageId[0]
5757
assert 3 == test.theZ[0]

components/tools/OmeroPy/test/integration/tablestest/test_tables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def checkMaskCol(self, test):
5252
def arr(x):
5353
import numpy
5454
import tables
55-
return numpy.frombytes(x, count=len(x), dtype=tables.UInt8Atom())
55+
return numpy.frombuffer(x, count=len(x), dtype=tables.UInt8Atom())
5656

5757
assert 1 == test.imageId[0]
5858
assert 3 == test.theZ[0]

0 commit comments

Comments
 (0)