Repository navigation
Replace spmatrix with _CSMatrix as appropriate - #3431
Merged
Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3431 +/- ##
==========================================
+ Coverage 75.36% 75.43% +0.06%
==========================================
Files 112 112
Lines 13219 13235 +16
==========================================
+ Hits 9963 9984 +21
+ Misses 3256 3251 -5
|
flying-sheep
marked this pull request as ready for review
January 10, 2025 14:51
2 of 3 tasks
ilan-gold
approved these changes
Jan 14, 2025
Contributor
There was a problem hiding this comment.
Looks good, about the plan:
replace spmatrix with _SpBase = sparray | spmatrix and _CSMatrix with _CSBase = cs{cr}_matrix | cs{cr}_array and test
I am not sure this will go so smoothly because of differing APIs and version compatibility. It was something of a nightmare in AnnData...
2 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preparation for sparray support: make sure
spmatrixis only used where it makes sense.I checked every single instance of
spmatrixand either tested thatcoo_matrixalso works or replaced it with_CSMatrix = csr_matrix | csc_matrix.TODO after this PR:
_SpBase = sparray | spmatrixand_CSMatrixwith_CSBase = cs{cr}_matrix | cs{cr}_arrayand testbsr_array