Skip to content

Commit 63d40ff

Browse files
authored
scipy 1.7.2 compat for SparseDataset (#638)
1 parent 456b0e8 commit 63d40ff

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

anndata/_core/sparse_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def to_backed(self) -> BackedSparseMatrix:
362362
mtx = format_class(self.shape, dtype=self.dtype)
363363
mtx.data = self.group["data"]
364364
mtx.indices = self.group["indices"]
365-
mtx.indptr = self.group["indptr"]
365+
mtx.indptr = self.group["indptr"][:]
366366
return mtx
367367

368368
def to_memory(self) -> ss.spmatrix:

docs/release-latest.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ On `master` :small:`the future`
99
- Fixed propagation of import error when importing `write_zarr` but not all dependencies are installed :pr:`579` :smaller:`R Hillje`
1010
- Fixed issue with `.uns` sub-dictionaries being referenced by copies :pr:`576` :smaller:`I Virshup`
1111
- Fixed out-of-bounds integer indices not raising :class:`IndexError` :pr:`630` :smaller:`M Klein`
12+
- Fixed backed `SparseDataset` indexing with scipy 1.7.2 :pr:`638` :smaller:`I Virshup`
1213

1314

1415
0.7.6 :small:`11 April, 2021`

0 commit comments

Comments
 (0)