Repository navigation
feat: allow gpu io in sparse_dataset by removing scipy inheritance - #1927
Merged
Merged
Conversation
ilan-gold
marked this pull request as draft
March 20, 2025 21:49
ilan-gold
force-pushed
the
ig/remove_sparse_inheritance
branch
from
March 21, 2025 14:23
a12700b to
eac05cf
Compare
…data into ig/remove_sparse_inheritance
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1927 +/- ##
==========================================
- Coverage 86.67% 84.56% -2.12%
==========================================
Files 46 46
Lines 7226 7203 -23
==========================================
- Hits 6263 6091 -172
- Misses 963 1112 +149
|
5 of 6 tasks
scipy inheritancesparse_dataset by removing scipy inheritance
flying-sheep
left a comment
Member
There was a problem hiding this comment.
Great stuff, nice simplifications with the major/minor axis stuff. Some questions
|
|
||
| @property | ||
| def memory_format(self) -> type[SparseMatrixType]: | ||
| is_gpu = hasattr(zarr, "config") and "gpu" in zarr.config.get("ndbuffer") |
Member
There was a problem hiding this comment.
maybe unify this with get_np_module? It’s the same logic.
Also this can just be one expression by setting getattr’s 3rd argument (the default) to {}.
3 tasks done
flying-sheep
approved these changes
Jan 27, 2026
Co-authored-by: Philipp A. <[email protected]>
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.
Aside from the removed ability to write, all functionality should be ported over.
BaseCompressedSparseDatasetand subclasses to removebacked_{csr,csc}_matrix#1456, towards "How to" example of direct GPU IO #1154 and AnnData IO modifiers #659 (comment)