Skip to content

Conversation

@colganwi
Copy link
Contributor

The .A attribute of scipy.sparse arrays which has been deprecated for a while in favor of .toarray() was finally removed from scipy in the 1.14.0 release. This PR replaces .A to .toarray() which resolves the AttributeError: 'csc_matrix' object has no attribute 'A' thrown by hs.create_knn_graph when scipy>=1.14.0

Copy link
Member

@deto deto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - thank you!

@deto deto merged commit 351826c into YosefLab:master Feb 24, 2025
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants