-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat): Support for scipy.sparse.{csr,csc}_array (#1028)
* Using faster random matrix generation in gen_adata * Add csr_arrays to gen_adata * Initial implementation * Get concat working better with sparse_arrays * Add sparray cases to helpers * Add dask.tokenize for sparray classes, move to conftest * Add sparray case to test_write_dispatched_chunks * Add filled_with method for sparray for testing * (chore): add test cases * (feat): add compat wrappers for needed sparse array classes * (feat): add `X` test cases * (fix): merge test * (feat): add dtype concatenation test * (chore): add docs * (feat): support backed sparse * (fix): array and matrix typing in `append` * (feat): add in mechanism for io, alway false * (fix): condition on memory/backed * (chore): remove comment * (fix): mock class repr * (fix): subsetting * (chore): subsetting tests * (fix): writing * (fix): concatenation matrix/array class usage * (fix): spec reading * (fix): condition for `coo_array` in setting * (fix): index type * (fix): `sparray` usage * (fix): writing of arrays * (fix): more writing * (fix): raw tests * (chore): add overflow check class * (chore): add sparray tests * (fix): only test `sparray` if possible in `test_creation` * (fix): remove unnecessary compat class * (chore): fix xfail for sparse array in dask * (chore): type hints for subsetting sparse * (fix): base class check in `test_concatenate_roundtrip` * (fix): indexing * (fix): xfail cases * (chore): remove unnecessary `CAN_USE_SPARSE_ARRAY` * (fix): `h5` indexing check * (fix): more xfail expectations * (fix): skip `csr_array` for `test_append_overflow_check` * (fix): `isinstance` -> `issubclass` * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * (refactor): `maybe_add_sparse_array` for `gen_adata` instead of conditionals * (fix): import `contextmanager` in helpers * preferred fix for dealing with backed arrays * (refactor): use `new_array_type.__name__` for type check * (refactor): gpu fixes, using request id and skipping bad dtype * (fix): add coverage for setting by sparse * Fix typo * Ignore benchmark files * Remove dask sparray stuff * Apply suggestions from code review Revert changes to backed sparse class hierarchy * Remove tests case specializing on dask sparray * simplify tests setting X * normalize conditionals --------- Co-authored-by: Ilan Gold <[email protected]> Co-authored-by: Philipp A <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
0a768fc
commit b7ca381
Showing
22 changed files
with
481 additions
and
127 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,4 @@ __pycache__/ | |
.asv | ||
benchmark/benchmarks/data | ||
benchmarks/benchmarks/data | ||
benchmarks/pkgs |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.