scverse / scanpy

Single-cell analysis in Python. Scales to >1M cells.
https://scanpy.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.93k stars 604 forks source link

Backport PR #3289 on branch 1.10.x ((fix): conditional imports to avoid `anndata.io` warning) #3290

Closed meeseeksmachine closed 1 month ago

meeseeksmachine commented 1 month ago

Backport PR #3289: (fix): conditional imports to avoid anndata.io warning

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 76.92%. Comparing base (e177e99) to head (40fc6f2). Report is 1 commits behind head on 1.10.x.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## 1.10.x #3290 +/- ## ======================================= Coverage 76.91% 76.92% ======================================= Files 109 109 Lines 12451 12455 +4 ======================================= + Hits 9577 9581 +4 Misses 2874 2874 ``` | [Files with missing lines](https://app.codecov.io/gh/scverse/scanpy/pull/3290?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scverse) | Coverage Δ | | |---|---|---| | [src/scanpy/readwrite.py](https://app.codecov.io/gh/scverse/scanpy/pull/3290?src=pr&el=tree&filepath=src%2Fscanpy%2Freadwrite.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scverse#diff-c3JjL3NjYW5weS9yZWFkd3JpdGUucHk=) | `77.75% <100.00%> (+0.21%)` | :arrow_up: |