Skip to content

Support ManifestArray expansion via None in the indexer#612

Merged
maxrjones merged 2 commits intodevelopfrom
xr-indexing
Jun 11, 2025
Merged

Support ManifestArray expansion via None in the indexer#612
maxrjones merged 2 commits intodevelopfrom
xr-indexing

Conversation

@maxrjones
Copy link
Member

This PR adds ManifestArray support this component of the array API:

Each None in the selection tuple must expand the dimensions of the resulting selection by one dimension of size 1. The position of the added dimension must be the same as the position of None in the selection tuple.

Fixes #596

@codecov
Copy link

codecov bot commented Jun 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.40%. Comparing base (6fd8634) to head (8e66aac).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #612      +/-   ##
===========================================
+ Coverage    89.34%   89.40%   +0.05%     
===========================================
  Files           34       34              
  Lines         1943     1944       +1     
===========================================
+ Hits          1736     1738       +2     
+ Misses         207      206       -1     
Files with missing lines Coverage Δ
virtualizarr/manifests/array.py 78.88% <ø> (ø)

... and 1 file with indirect coverage changes

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

Copy link
Collaborator

@chuckwondo chuckwondo left a comment

Choose a reason for hiding this comment

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

Thanks @maxrjones! Looks good!

@maxrjones maxrjones merged commit e5a9bf8 into develop Jun 11, 2025
12 checks passed
@maxrjones maxrjones deleted the xr-indexing branch June 11, 2025 20:08
@TomNicholas TomNicholas mentioned this pull request Jul 23, 2025
7 tasks
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.

Failing test to due to upstream indexer changes

2 participants