Skip to content

concat: follow the inputs' Zarr version - #43

Merged
Claptar merged 1 commit into
mainfrom
fix/concat-zarr-version
Oct 15, 2026
Merged

Claptar merged 1 commit into
mainfrom
fix/concat-zarr-version

Conversation

@Claptar

@Claptar Claptar commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Fixes #36. Stacked on #42. Merge that first; this PR then retargets to main.

With no --zarr-format, concat wrote whatever zarr-python defaults to, which is v3. So two v2 inputs came out as v3, which contradicts docs/COMMANDS.md ("New Zarr stores follow the source store's version").

What changed

concat now follows the version its Zarr inputs share:

Inputs Output
v2 + v2 v2 (was v3)
v3 + v3 v3
v2 + v3 v3 (no agreement, so the default)
h5ad + v2 v2 (h5ad has no version and doesn't count)

--zarr-format still overrides this. The --help text now states the default, and the concat flag table in COMMANDS.md gains --zarr-format and --chunk.

Tests

  • test_concat_follows_the_inputs_zarr_version covers the four cases in the table. The v2 cases fail on main.
  • test_concat_zarr_format_overrides_the_inputs covers the override.
  • Full suite: 1221 passed locally.

🤖 Generated with Claude Code

Fixes #36. With no --zarr-format, concat wrote whatever zarr-python
defaults to (v3), so two v2 inputs came out v3, contrary to the docs.
It now uses the version its Zarr inputs share; h5ad inputs do not count,
and inputs of both versions still get v3. The flag table in COMMANDS.md
gains --zarr-format and --chunk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 15, 2026 13:37

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T13:39:03.574193Z ca0c36c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results (py3.12)

1 222 tests  +5   1 222 ✅ +5   4m 25s ⏱️ + 1m 51s
    1 suites ±0       0 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit ca0c36c. ± Comparison against base commit 8a3550a.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results (py3.13)

1 222 tests  +5   1 222 ✅ +5   5m 9s ⏱️ + 1m 8s
    1 suites ±0       0 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit ca0c36c. ± Comparison against base commit 8a3550a.

@Claptar
Claptar changed the base branch from fix/staged-writes to main October 15, 2026 13:49
@Claptar
Claptar merged commit 63d1aae into main Oct 15, 2026
6 checks passed
@Claptar
Claptar deleted the fix/concat-zarr-version branch October 15, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

concat writes Zarr v3 whatever its inputs' version, contradicting the docs

2 participants