Skip to content

feat(convert): default scaled zarr to <series>.zarr beside the source images#57

Merged
dustenhubbard merged 1 commit into
mainfrom
feat/zarr-convert-default-naming
Jul 10, 2026
Merged

feat(convert): default scaled zarr to <series>.zarr beside the source images#57
dustenhubbard merged 1 commit into
mainfrom
feat/zarr-convert-default-naming

Conversation

@dustenhubbard

Copy link
Copy Markdown
Owner

Improves the default when converting images to a scaled zarr (the save dialog still lets the user pick any location/name — this only changes the suggested default).

  • Location: default is now a sibling of the source image directory (one level up), so the .zarr sits next to the images rather than inside them.
  • Name: <series>.zarr (was the hard-coded <series>_images.zarr).
  • Filter loosened to *zarr so an overridden name like proj-zarr isn't turned into proj-zarr.zarr by the dialog's suffixing.
  • Invariant enforced in code: ensure_zarr_suffix guarantees the chosen path ends in zarr (what ImageLayer.is_zarr_file = src_dir.endswith("zarr") requires), independent of the dialog's platform-dependent suffix behavior.

Pure path logic lives in a Qt-free helper (backend/func/zarr_naming.py) with unit tests; full suite green.

@dustenhubbard dustenhubbard merged commit abdcc8b into main Jul 10, 2026
1 check passed
@dustenhubbard dustenhubbard deleted the feat/zarr-convert-default-naming branch July 10, 2026 16:33
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