Skip to content

deprecate MuData methods whose AnnData analogs will be deprecated in 0.13#131

Open
ilia-kats wants to merge 3 commits intoscverse:mainfrom
ilia-kats:deprecations
Open

deprecate MuData methods whose AnnData analogs will be deprecated in 0.13#131
ilia-kats wants to merge 3 commits intoscverse:mainfrom
ilia-kats:deprecations

Conversation

@ilia-kats
Copy link
Copy Markdown
Collaborator

No description provided.

@ilia-kats ilia-kats requested review from gtca and ilan-gold March 27, 2026 16:06
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Codecov Report

❌ Patch coverage is 97.72727% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 91.13%. Comparing base (5ccf921) to head (1508660).

Files with missing lines Patch % Lines
src/mudata/_core/utils.py 97.22% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #131      +/-   ##
==========================================
+ Coverage   90.98%   91.13%   +0.14%     
==========================================
  Files          11       11              
  Lines        1797     1838      +41     
==========================================
+ Hits         1635     1675      +40     
- Misses        162      163       +1     
Files with missing lines Coverage Δ
src/mudata/_core/mudata.py 93.18% <100.00%> (+0.05%) ⬆️
src/mudata/_core/utils.py 95.72% <97.22%> (+0.48%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@ilan-gold ilan-gold left a comment

Choose a reason for hiding this comment

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

Very wonderful! I think this helper is awesome!

from collections.abc import Callable, Mapping, Sequence


def deprecated(version: str, msg: str | None = None):
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 seems like a good candidate for scverse-misc right?

We don't seem to have this in AnnData: https://anndata.readthedocs.io/en/stable/generated/anndata.AnnData.var_vector.html#anndata.AnnData.var_vector i.e., the deprecation does not appear in the docs

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.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

you guys have this mixin class that explicitly hides deprecated methods from the docs. But I'm happy to move this to scverse-misc.

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.

Ah true, I guess we will deprecate in 0.13 but maybe this is a nice alternative? I'd like to hear from @flying-sheep what his take is. My feeling is that this is a cleaner solution than deleting from the docs.

Co-authored-by: Ilan Gold <ilanbassgold@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants