Reduce warnings#1113
Merged
LucaMarconato merged 13 commits intomainfrom May 5, 2026
Merged
Conversation
- Use zip(strict=True) when converting tuple chunks to dict in RasterSchema - Copy AnnData views before modifying .uns in TableModel.parse - Use explicit string obs index in AnnData construction to avoid implicit index warnings - Add .copy() after compute()/slice to avoid pandas SettingWithCopyWarning (CoW) - Remove unused docs/_templates autosummary files - Update tutorials submodule Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
for more information, see https://pre-commit.ci
…into less-warnings
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1113 +/- ##
==========================================
- Coverage 91.93% 91.87% -0.07%
==========================================
Files 51 51
Lines 7772 7775 +3
==========================================
- Hits 7145 7143 -2
- Misses 627 632 +5
🚀 New features to boost your workflow:
|
…ss INFO noise Build the dataframe with only the coordinate columns actually needed for each branch: source columns (A/B/C) when a coordinates mapping is provided, target columns (x/y/z) otherwise. This prevents the rename-drop and z-ignored-in-2D INFO messages (240 occurrences) from firing during tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…o suppress WARNING noise The target column was a plain str Series; PointsModel.parse() converted it to an unknown-categories dask Categorical, triggering a performance warning on every parametrized invocation. Using pd.Categorical with known categories up-front avoids the conversion path entirely. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…format tests Use `re.match`-compatible pattern (anchored at start) and add `@pytest.mark.filterwarnings` to standalone parametrized tests outside `TestReadWrite` that intentionally exercise the V01 container format. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
for more information, see https://pre-commit.ci
…ilterwarnings Replace verbose autouse fixtures (catch_warnings + isinstance check) with a single @pytest.mark.filterwarnings decorator on each class/function. The isinstance guard was unnecessary because V02 tests never emit the warning, so the filter is a harmless no-op for them. Also removes now-unused `import warnings` from test_format.py and test_readwrite.py, and CurrentSpatialDataContainerFormat from test_attrs_io.py. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…into less-warnings
for more information, see https://pre-commit.ci
Member
Author
|
Recap:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reduce warnings, in particular: