From f8b9da6d0cca885bd6075f6c904b4f1eb336b759 Mon Sep 17 00:00:00 2001 From: Sichao25 Date: Mon, 22 Jul 2024 11:52:04 -0400 Subject: [PATCH] deprecate more sparse matrix .A attributes --- dynamo/tools/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamo/tools/utils.py b/dynamo/tools/utils.py index fb4d402db..6640c3bdd 100755 --- a/dynamo/tools/utils.py +++ b/dynamo/tools/utils.py @@ -3346,7 +3346,7 @@ def get_rank_array( if type(arr) == ArrayView: arr = np.array(arr) if sp.issparse(arr): - arr = arr.A + arr = arr.toarray() arr[np.isnan(arr)] = 0 if dtype is not None: