Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat): feature set for backed views of views #4

Open
wants to merge 3 commits into
base: zarr-sparse-array
Choose a base branch
from

Conversation

ilan-gold
Copy link

@ilan-gold ilan-gold commented Jul 31, 2023

This PR introduces a mechanism by which one could in theory do views-of-views of sparse data.

Conceptually, to_backed does the same thing as it did before but now the backed object which it returns is used in to_memory in conjunction with the saved indices to produce in memory representations of subsets of the data. So the backed classes have no notion of indices but the BaseCompressedSparseDataset children do.

Furthermore, to_memory is smart about which operation to do first (row or column subsetting) based in if it is operating with a csr or csc matrix.

This PR does not introduce the feature of views of views - this will come with the new read_backed method. For now, the goal is just to cut down on the review of that PR by introducing this as a rightfully independent feature that doesn't break anything.

@ilan-gold ilan-gold force-pushed the ig/backed_sparse_view_of_view branch from c42e889 to d7d6dda Compare August 1, 2023 07:20
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.

1 participant