Skip to content

Commit 9c8359d

Browse files
committed
changed .A to .toarray for csr_matrices
Signed-off-by: Nick Papior <[email protected]>
1 parent 4493a1a commit 9c8359d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sisl/physics/tests/test_physics_sparse.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def run_Pk_hermitian_tests(M):
3131
for k in ([0, 0, 0], [0.1, 0.2, 0.3]):
3232
Mk = M.Pk(k=k, format="array")
3333
assert np.allclose(Mk, Mk.T.conj())
34-
Mk = M.Pk(k=k).A
34+
Mk = M.Pk(k=k).toarray()
3535
assert np.allclose(Mk, Mk.T.conj())
3636

3737

0 commit comments

Comments
 (0)