Skip to content

feat: read dimension names from each array's multiscales metadata - #35

Merged
yuriyzubov merged 2 commits into
mainfrom
feat/multiscales-axes
Oct 28, 2026
Merged

yuriyzubov merged 2 commits into
mainfrom
feat/multiscales-axes

Conversation

@yuriyzubov

@yuriyzubov yuriyzubov commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

N5 and zarr v2 sources now get dimension_names for each array from the source metadata, not from the config axes.

Changes

  • zarr v2: the axes come from the nearest enclosing .zattrs with an OME-NGFF multiscales entry.
  • N5: the axes come from the nearest enclosing attributes.json with an axes attribute.
  • Before any write, the conversion fails if an array has no such group, or if the number of axes does not match the array rank.
  • A zarr v2 source can now be a group inside a .zarr store (for example, one multiscale group). The source must still have a .zgroup.

Behavior change: a source without axes metadata now fails. Before, it used the config axes.

Tests: tests/test_source_axes.py checks, for zarr v2 and N5, that dimension_names come from the source and not from the config, that a source with no axes or a rank mismatch fails before any write, and that a group inside a .zarr store converts. tests/conftest.py adds shared fixtures that later PRs also use.

Stack: 2 of 5. Base: #34.

🤖 Generated with Claude Code

yuriyzubov and others added 2 commits October 28, 2026 15:22
N5 and zarr v2 sources now take dimension_names for each array from the
nearest enclosing group that has axes metadata, instead of from the
config. Conversion fails before any write if an array has no such group
or its rank does not match. A zarr v2 source can now also be a group
inside a .zarr store.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds shared fixtures (module dask client, small N5 / zarr v2 source
builders) in tests/conftest.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yuriyzubov
yuriyzubov force-pushed the feat/multiscales-axes branch from f206cde to e1ee4a7 Compare October 28, 2026 19:49
@yuriyzubov
yuriyzubov deleted the branch fix/worker-memory October 28, 2026 20:13
@yuriyzubov yuriyzubov closed this Oct 28, 2026
@yuriyzubov yuriyzubov reopened this Oct 28, 2026
@yuriyzubov
yuriyzubov changed the base branch from fix/worker-memory to main October 28, 2026 20:14
@yuriyzubov yuriyzubov closed this Oct 28, 2026
@yuriyzubov yuriyzubov reopened this Oct 28, 2026
@yuriyzubov
yuriyzubov merged commit 497beb7 into main Oct 28, 2026
1 check passed
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.

1 participant