Skip to content

Commit 23bb3ce

Browse files
committed
fix test for numpy > 2.2
1 parent 83da69d commit 23bb3ce

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎Wrappers/Python/test/test_cropped_readers.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def setUp(self):
1616
bits = 8
1717
self.input_3D_array = np.random.randint(10, size=shape, dtype=eval(f"np.uint{bits}"))
1818
self.input_3D_array = np.reshape(np.arange(self.input_3D_array.size),
19-
newshape=shape).astype(dtype=eval(f"np.uint{bits}"))
19+
shape).astype(dtype=eval(f"np.uint{bits}"))
2020
self.raw_type_code = str(self.input_3D_array.dtype)
2121
bytes_3D_array = bytes(self.input_3D_array)
2222
self.raw_filename_3D = 'test_3D_data.raw'

‎Wrappers/Python/test/test_resample_readers.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def setUp(self):
2121
self.size_greater_than_input_size = 10000
2222
self.input_3D_array = np.random.randint(10, size=shape, dtype=eval(f"np.uint{bits}"))
2323
self.input_3D_array = np.reshape(np.arange(self.input_3D_array.size),
24-
newshape=shape).astype(dtype=eval(f"np.uint{bits}"))
24+
shape).astype(dtype=eval(f"np.uint{bits}"))
2525
bytes_3D_array = bytes(self.input_3D_array)
2626
self.raw_filename_3D = 'test_3D_data.raw'
2727
with open(self.raw_filename_3D, 'wb') as f:

0 commit comments

Comments
 (0)