Skip to content

Commit 0df9ebe

Browse files
committed
Update: test
1 parent 6a326e2 commit 0df9ebe

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/oceancolour/test_qaa.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ def diagonalize(U: np.ndarray) -> np.ndarray: # noqa: N806
128128
"""
129129
return np.stack(
130130
[
131-
np.diag(
132-
U[i].reshape((-1, np.prod(U.shape[1 + U.ndim // 2 :])))
133-
).reshape(U.shape[1 + U.ndim // 2 :])
134-
for i in range(U.shape[0])
131+
np.diag(_.reshape((np.prod(_.shape[_.ndim // 2 :]), -1))).reshape(
132+
_.shape[_.ndim // 2 :]
133+
)
134+
for _ in U
135135
]
136136
)
137137

0 commit comments

Comments
 (0)