Skip to content

Commit

Permalink
Fix logic for anndata import.
Browse files Browse the repository at this point in the history
Remove high `anndata` pin.
  • Loading branch information
alam-shahul committed Oct 10, 2024
1 parent dff6eb1 commit 24940cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ maintainers = [

dependencies = [
"aiohttp>=3.8.1",
"anndata>=0.11.0rc1",
"anndata>=0.9",
"cycler>=0.11.0",
"dask-image>=0.5.0",
"dask[array]>=2021.02.0",
Expand Down
2 changes: 1 addition & 1 deletion src/squidpy/gr/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from squidpy._utils import NDArrayA, _unique_order_preserving

CAN_USE_SPARSE_ARRAY = Version(anndata.__version__) >= Version("0.11.0")
if not CAN_USE_SPARSE_ARRAY:
if CAN_USE_SPARSE_ARRAY:
from anndata._core.views import ArrayView
from anndata._core.views import SparseCSCMatrixView as SparseCSCView
from anndata._core.views import SparseCSRMatrixView as SparseCSRView
Expand Down

0 comments on commit 24940cc

Please sign in to comment.