Skip to content

Allow storing scalar arrays under 'c' key#836

Merged
maxrjones merged 6 commits intomainfrom
scalar-key-in-chunk-manifests
Nov 14, 2025
Merged

Allow storing scalar arrays under 'c' key#836
maxrjones merged 6 commits intomainfrom
scalar-key-in-chunk-manifests

Conversation

@maxrjones
Copy link
Member

This PR strengthens the key parsing in ChunkManifest, reusing/generalizing logic about the Zarr hierarchy from ManifestStore.

@neilSchroeder, I hope this will address the issues you were finding, which I think was a bug in the ChunkManifest logic rather than the Zarr parser. Sorry for the redundancy with your PR in #835, I just didn't think you should need to workaround this.
Fixes #834

@codecov
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

❌ Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 88.32%. Comparing base (847dbde) to head (7bb636b).
⚠️ Report is 21 commits behind head on main.

Files with missing lines Patch % Lines
virtualizarr/manifests/manifest.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #836      +/-   ##
==========================================
- Coverage   88.43%   88.32%   -0.11%     
==========================================
  Files          35       35              
  Lines        1988     1988              
==========================================
- Hits         1758     1756       -2     
- Misses        230      232       +2     
Files with missing lines Coverage Δ
virtualizarr/manifests/store.py 88.42% <100.00%> (-0.10%) ⬇️
virtualizarr/manifests/utils.py 90.74% <100.00%> (+0.17%) ⬆️
virtualizarr/manifests/manifest.py 84.61% <80.00%> (ø)

... 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.

@maxrjones maxrjones requested a review from a team November 13, 2025 17:00
maxrjones and others added 2 commits November 13, 2025 15:25
Co-authored-by: Chuck Daniels <chuck@developmentseed.org>
Co-authored-by: Chuck Daniels <chuck@developmentseed.org>
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.

LGTM!

@maxrjones maxrjones added the bug Something isn't working label Nov 14, 2025
@maxrjones maxrjones merged commit c6de7b3 into main Nov 14, 2025
15 checks passed
@maxrjones maxrjones deleted the scalar-key-in-chunk-manifests branch November 14, 2025 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: scalar arrays fail to open with ValueError: Invalid format for chunk key

3 participants