Skip to content

Commit 6b0bd8f

Browse files
author
Luke Shaw
committed
Change incorrect syntax in test files
1 parent 79fd1c9 commit 6b0bd8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ndarray/test_evaluate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def sample_data(request):
2727
# The jit decorator can work with any numpy or NDArray params in functions
2828
a = blosc2.linspace(0, 1, shape[0] * shape[1], dtype=dtype, shape=shape)
2929
b = np.linspace(1, 2, shape[0] * shape[1], dtype=dtype).reshape(shape)
30-
c = blosc2.linspace(-10, 10, cshape[0], dtype=dtype, shape=cshape)
30+
c = blosc2.linspace(-10, 10, np.prod(cshape), dtype=dtype, shape=cshape)
3131
return a, b, c, shape
3232

3333

tests/ndarray/test_jit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def sample_data(request):
2626
# The jit decorator can work with any numpy or NDArray params in functions
2727
a = blosc2.linspace(0, 1, shape[0] * shape[1], dtype=dtype, shape=shape)
2828
b = np.linspace(1, 2, shape[0] * shape[1], dtype=dtype).reshape(shape)
29-
c = blosc2.linspace(-10, 10, cshape[0], dtype=dtype, shape=cshape)
29+
c = blosc2.linspace(-10, 10, np.prod(cshape), dtype=dtype, shape=cshape)
3030
return a, b, c, shape
3131

3232

0 commit comments

Comments
 (0)