Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Koncopd committed Aug 29, 2024
1 parent 169aedd commit 0b00885
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion lamindb/core/storage/_anndata_accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import pandas as pd
from anndata import AnnData
from anndata import __version__ as anndata_version
from anndata._core.index import Index, _normalize_indices
from anndata._core.index import _normalize_indices
from anndata._core.views import _resolve_idx
from anndata._io.h5ad import read_dataframe_legacy as read_dataframe_legacy_h5
from anndata._io.specs.registry import get_spec, read_elem, read_elem_partial
Expand All @@ -29,6 +29,11 @@

anndata_version_parse = version.parse(anndata_version)

if anndata_version_parse < version.parse("0.9.0"):
from anndata._core.index import Index
else:
from anndata.compat import Index

if anndata_version_parse < version.parse("0.10.0"):
if anndata_version_parse < version.parse("0.9.1"):
logger.warning(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"typing_extensions!=4.6.0",
"python-dateutil",
"anndata==0.10.9", # will upgrade to new anndata releases
"scipy<1.13.0rc1", # anndata backed (Artifact.open) is incompatible otherwise
"scipy<1.13.0rc1", # Artifact.open for older anndata is incompatible otherwise
"fsspec",
"pandas",
"graphviz",
Expand Down

0 comments on commit 0b00885

Please sign in to comment.