Skip to content

Commit 5317a80

Browse files
committed
[FIX] Resolving commits of PR.
1 parent ddea451 commit 5317a80

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/blosc2/ndarray.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3654,9 +3654,9 @@ def matmul(x1: NDArray, x2: NDArray, **kwargs: Any) -> NDArray:
36543654
36553655
Parameters
36563656
----------
3657-
x1: `NDArray`
3657+
x1: :ref:`NDArray`
36583658
The first input array.
3659-
x2: `NDArray`
3659+
x2: :ref:`NDArray`
36603660
The second input array.
36613661
kwargs: Any, optional
36623662
Keyword arguments that are supported by the :func:`empty` constructor.
@@ -3761,7 +3761,7 @@ def transpose(x, **kwargs: Any) -> NDArray:
37613761
37623762
Parameters
37633763
----------
3764-
x: `NDArray`
3764+
x: :ref:`NDArray`
37653765
The input array.
37663766
kwargs: Any, optional
37673767
Keyword arguments that are supported by the :func:`empty` constructor.

tests/ndarray/test_transpose.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
((1, 5), (1, 4), (1, 3)),
1212
((51, 603), (22, 99), (13, 29)),
1313
((10,), (5,), None),
14+
((31,), (14,), (9,)),
1415
]
1516
)
1617
def shape_chunks_blocks(request):
@@ -39,7 +40,7 @@ def test_transpose(shape_chunks_blocks, dtype):
3940
def test_complex(shape_chunks_blocks, dtype):
4041
shape, chunks, blocks = shape_chunks_blocks
4142
real_part = blosc2.linspace(0, 1, shape=shape, chunks=chunks, blocks=blocks, dtype=dtype)
42-
imag_part = blosc2.linspace(0, 1, shape=shape, chunks=chunks, blocks=blocks, dtype=dtype)
43+
imag_part = blosc2.linspace(1, 0, shape=shape, chunks=chunks, blocks=blocks, dtype=dtype)
4344
complex_matrix = real_part + 1j * imag_part
4445

4546
a = blosc2.asarray(complex_matrix)
@@ -80,7 +81,7 @@ def test_scalars(scalar):
8081
(3, 3, 3),
8182
(12, 10, 10),
8283
(10, 10, 10, 11),
83-
(5, 4, 3, 2, 1, 0),
84+
(5, 4, 3, 2, 1, 1),
8485
],
8586
)
8687
def test_dims(shape):

0 commit comments

Comments
 (0)