Skip to content

Commit bdabf64

Browse files
fix: don't convert dense matrices to COO in feature_is_filtered validation (#1398)
1 parent 468f06f commit bdabf64

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 6.0.0
2+
current_version = 6.0.1
33
commit = True
44
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?:-(?P<prerel>rc)\.(?P<prerelversion>\d+))?
55
serialize =
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "6.0.0"
1+
__version__ = "6.0.1"

cellxgene_schema_cli/cellxgene_schema/matrix_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ def compute_column_sums(matrix: Union[DaskArray, np.ndarray, sparse.spmatrix]) -
6363
# Handle Dask array (could be sparse or dense)
6464
if isinstance(matrix, DaskArray):
6565

66-
def to_coo(chunk: Union[np.ndarray, sparse.spmatrix]) -> sp.COO:
66+
def to_coo(chunk: Union[np.ndarray, sparse.spmatrix]) -> Union[sp.COO, np.ndarray]:
6767
# convert to sparse.COO, so we can use dask's internal chunked sum
6868
if sparse.issparse(chunk):
6969
return sp.COO.from_scipy_sparse(chunk)
7070
else:
71-
return sp.COO(chunk)
71+
return chunk
7272

7373
x_coo = matrix.map_blocks(to_coo, dtype=matrix.dtype)
7474

cellxgene_schema_cli/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="cellxgene-schema",
8-
version="6.0.0",
8+
version="6.0.1",
99
url="https://github.com/chanzuckerberg/single-cell-curation",
1010
license="MIT",
1111
author="Chan Zuckerberg Initiative",

0 commit comments

Comments
 (0)