Skip to content

Commit

Permalink
Merge pull request aristoteleo#695 from Sichao25/sijie-july24-fix
Browse files Browse the repository at this point in the history
Deprecate more sparse matrix .A attributes
  • Loading branch information
chansigit authored Jul 22, 2024
2 parents c9fa676 + f8b9da6 commit 62a8198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dynamo/tools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 62a8198

Please sign in to comment.