Skip to content

ENH: Support and require Zarr v3 - #523

Merged
basnijholt merged 32 commits into
mainfrom
zarr-3
Nov 4, 2025
Merged

basnijholt merged 32 commits into
mainfrom
zarr-3

Conversation

@basnijholt

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread pipefunc/map/_storage_array/_zarr.py Outdated
name="/array",
shape=self.full_shape,
dtype=object,
object_codec=object_codec,

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.

@codspeed

codspeed Bot commented Jan 9, 2025 •

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #523 will not alter performance

Comparing zarr-3 (37db873) with main (06fddc6)

Summary

✅ 6 untouched

@basnijholt basnijholt changed the title Zarr 3 ENH: Support Zarr v3 Jan 9, 2025
- Change _encode_scalar return type from np.bytes_ to bytes
- Update _store_scalar_encoded signature to accept bytes
- Zarr v3 VariableLengthBytes dtype expects plain Python bytes
- Fixes TypeError: Expected bytes, got numpy.bytes_ on CI

This resolves all 54 failing tests across all Python versions.
@codecov

codecov Bot commented Nov 4, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
pipefunc/map/__init__.py 100.00% <100.00%> (ø)
pipefunc/map/_storage_array/_zarr.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@basnijholt
basnijholt marked this pull request as ready for review November 4, 2025 06:43
- Document VLenBytes slicing vs scalar indexing forms in _decode_scalar
- Note 0-D mask arrays must use chunks=() (chunks=(1,) raises ValueError)
- Qualify ndarray return comment with “As of Zarr 3.1.3” and scalar unwrap rationale

No functional changes.
@basnijholt
basnijholt merged commit b32a21c into main Nov 4, 2025
@basnijholt
basnijholt deleted the zarr-3 branch November 4, 2025 17:06
@basnijholt basnijholt changed the title ENH: Support Zarr v3 ENH: Support and require Zarr v3 Nov 4, 2025
@github-actions

github-actions Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

✅ PR Title Formatted Correctly

The title of this PR has been updated to match the correct format. Thank you!

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