Skip to content

Switch to (testing.)fast-array-utils#1921

Draft
flying-sheep wants to merge 15 commits into
mainfrom
pa/fast-array-utils
Draft

Switch to (testing.)fast-array-utils#1921
flying-sheep wants to merge 15 commits into
mainfrom
pa/fast-array-utils

Conversation

@flying-sheep
Copy link
Copy Markdown
Member

  • Closes #
  • Tests added
  • Release note added (or unnecessary)

@flying-sheep flying-sheep added this to the 0.12.0 milestone Mar 18, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.74%. Comparing base (ccfb6e3) to head (8ac2987).
⚠️ Report is 217 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1921      +/-   ##
==========================================
- Coverage   86.87%   84.74%   -2.14%     
==========================================
  Files          47       47              
  Lines        6912     6759     -153     
==========================================
- Hits         6005     5728     -277     
- Misses        907     1031     +124     
Files with missing lines Coverage Δ
src/anndata/_core/merge.py 84.06% <100.00%> (-9.95%) ⬇️
src/anndata/compat/__init__.py 78.18% <100.00%> (-5.00%) ⬇️
src/anndata/tests/helpers.py 89.08% <100.00%> (-2.81%) ⬇️
src/anndata/utils.py 85.56% <ø> (-1.43%) ⬇️

... and 10 files with indirect coverage changes

@flying-sheep flying-sheep changed the title Switch to testing.fast-array-utils Switch to (testing.)fast-array-utils Apr 1, 2025
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.

In general the amount of

@pytest.mark.array_type(skip=Flags.Gpu | Flags.Disk)

is a lot (both this one specifically, and others like it). It seems like there is probably some sort of default we could have, no?

Comment thread tests/lazy/conftest.py


@pytest.fixture(scope="session")
@pytest.fixture
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 might be a source of some slowdown

Comment thread tests/lazy/conftest.py


@pytest.fixture(scope="session")
@pytest.fixture
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.

Ditto

Comment thread tests/test_views.py
@IGNORE_SPARSE_EFFICIENCY_WARNING
def test_set_scalar_subset_X(matrix_type, subset_func):
adata = ad.AnnData(matrix_type(np.zeros((10, 10))))
@pytest.mark.array_type(skip={Flags.Disk, *CUPY_SPARSE, *DASK_SPARRAY})
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.

I think this sort of thing will now run these tests on gpu whereas they did not before?

Comment thread tests/test_views.py
def test_not_set_subset_X_dask(matrix_type_no_gpu, subset_func):
adata = ad.AnnData(matrix_type_no_gpu(asarray(sparse.random(20, 20))))
@pytest.mark.array_type(skip=Flags.Gpu | Flags.Disk)
def test_not_set_subset_X_dask(array_type: ArrayType, subset_func) -> 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.

In this case, this runs on sparse etc. as well, no?

@ilan-gold ilan-gold modified the milestones: 0.12.0, 0.12.1 Jul 16, 2025
@ilan-gold ilan-gold modified the milestones: 0.12.1, 0.12.2 Jul 23, 2025
@ilan-gold ilan-gold modified the milestones: 0.12.2, 0.12.3, 0.12.4 Oct 15, 2025
@ilan-gold ilan-gold modified the milestones: 0.12.4, 0.12.5 Oct 27, 2025
@ilan-gold ilan-gold modified the milestones: 0.12.5, 0.12.7 Nov 6, 2025
@flying-sheep flying-sheep modified the milestones: 0.12.7, 0.12.8 Dec 16, 2025
@ilan-gold ilan-gold modified the milestones: 0.12.8, 0.12.9, 0.12.10 Jan 27, 2026
@ilan-gold ilan-gold modified the milestones: 0.12.10, 0.12.11 Feb 6, 2026
@ilan-gold ilan-gold modified the milestones: 0.12.11, 0.12.12 Apr 21, 2026
@ilan-gold ilan-gold modified the milestones: 0.12.12, 0.12.13, 0.12.14, 0.12.15 May 6, 2026
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