Commit 746d85d
Natalie
Fix: Add compatibility with anndata >= 0.10
The 'read' function was deprecated in anndata 0.8 and removed in 0.10.0.
This commit adds a compatibility wrapper that uses read_h5ad as a fallback
when the read function is not available, ensuring compatibility with both
old and new versions of anndata.
Fixes ImportError: cannot import name 'read' from 'anndata'
This issue was blocking spateo-release and other downstream packages
from working with anndata >= 0.10.1 parent 9f82563 commit 746d85d
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
0 commit comments