Skip to content

Commit

Permalink
Fixed: stop using invalid .A attribute of scipy sparse matrix (#996)
Browse files Browse the repository at this point in the history
This previously deprecated attribute has been definitly removed from
scipy in the latest release (1.14.0).
It is equivalent to `.toarray()`.
  • Loading branch information
GaetanLepage authored Jul 20, 2024
1 parent b95ba90 commit 567cfd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_svd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
X = rng.randint(-100, 20, np.product(shape)).reshape(shape)
X = sp.csr_matrix(np.maximum(X, 0), dtype=np.float64)
X.data[:] = 1 + np.log(X.data)
Xdense = X.A
Xdense = X.toarray()

dXdense = da.from_array(Xdense, chunks=(30, 55))

Expand Down

0 comments on commit 567cfd7

Please sign in to comment.