Skip to content

Commit

Permalink
do spaces correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep authored Oct 22, 2024
1 parent af059ef commit ac8533c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scanpy/preprocessing/_pca/_dask_sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ def fit(self, x: DaskArray) -> PCASparseDaskFit:
"""
if x._meta.format != "csr":
msg = (
"Only dask arrays with CSR-meta format are supported."
f" Got {x._meta.format} as meta."
"Only dask arrays with CSR-meta format are supported. "
f"Got {x._meta.format} as meta."
)
raise ValueError(msg)
if x.chunksize[1] != x.shape[1]:
msg = (
"Only dask arrays with chunking along the first axis are supported."
f" Got chunksize {x.chunksize} with shape {x.shape}."
"Only dask arrays with chunking along the first axis are supported. "
f"Got chunksize {x.chunksize} with shape {x.shape}. "
"Rechunking should be simple and cost nothing from AnnData's on-disk format the on-disk layout has this chunking."
)
raise ValueError(msg)
Expand Down

0 comments on commit ac8533c

Please sign in to comment.