Skip to content

actually make CSRDataset and CSCDataset usable#1891

Closed
flying-sheep wants to merge 3 commits into
mainfrom
pa/cs-abc
Closed

actually make CSRDataset and CSCDataset usable#1891
flying-sheep wants to merge 3 commits into
mainfrom
pa/cs-abc

Conversation

@flying-sheep
Copy link
Copy Markdown
Member

oops, that should have been there from the start!

@flying-sheep flying-sheep added this to the 0.11.4 milestone Mar 6, 2025
@flying-sheep flying-sheep requested a review from ilan-gold March 6, 2025 14:56
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.66%. Comparing base (e2156e9) to head (50122b0).
Report is 61 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1891      +/-   ##
==========================================
- Coverage   86.10%   83.66%   -2.44%     
==========================================
  Files          40       40              
  Lines        6238     6240       +2     
==========================================
- Hits         5371     5221     -150     
- Misses        867     1019     +152     
Files with missing lines Coverage Δ
src/anndata/_core/sparse_dataset.py 92.19% <100.00%> (+0.04%) ⬆️
src/anndata/compat/__init__.py 79.11% <100.00%> (-4.00%) ⬇️

... and 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@flying-sheep flying-sheep self-assigned this Mar 6, 2025
Comment on lines +642 to +643
abc.CSRDataset.register(_CSRDataset)
abc.CSCDataset.register(_CSCDataset)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a deep cut for me - don't these both already inherit from the ABC? I'd like to understand this one. Does it have to do with the multiple inheritance?

from anndata._core.sparse_dataset import _CSRDataset
from anndata.abc import CSRDataset
assert issubclass(_CSRDataset, CSRDataset)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh, you’re right.

I must have run into something else then, no idea why I thought that check wasn’t already right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants