diff --git a/src/fabio/OXDimage.py b/src/fabio/OXDimage.py index 80fb02f2..6b5ea232 100644 --- a/src/fabio/OXDimage.py +++ b/src/fabio/OXDimage.py @@ -482,7 +482,7 @@ def dec_TY5(self, stream): dim2 = self._shape[0] while pos_inp < stream_size and pos_out < array_size: if pos_out % dim2 == 0: - last = 0 + last = numpy.int64(0) else: last = current value = raw[pos_inp] diff --git a/src/fabio/test/codecs/test_esperantoimage.py b/src/fabio/test/codecs/test_esperantoimage.py index 9d70f9d1..c5d9aa5c 100644 --- a/src/fabio/test/codecs/test_esperantoimage.py +++ b/src/fabio/test/codecs/test_esperantoimage.py @@ -134,7 +134,7 @@ def test_data(self): def test_values(self): esp = fabio.open(UtilsTest.getimage("reference.esperanto.bz2")[:-4]) npy = fabio.open(UtilsTest.getimage("reference.npy.bz2")[:-4]) - self.assertEqual(numpy.alltrue(esp.data == npy.data), True, "Images are the same") + self.assertEqual(numpy.all(esp.data == npy.data), True, "Images are the same") def suite():