Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/4412.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`Group.empty`, `zeros`, `ones`, `full` and their `*_like` versions now create arrays in the zarr format of the group. Previously a zarr v2 group got zarr v3 arrays, which were written into the group without becoming members of it. Creating an array like an array of the other zarr format (for example `zarr.zeros_like(v2_array)`) no longer fails. The new array uses the default codecs of its own format, and top-level `*_like` functions inherit the zarr format of the source array unless `zarr_format` is passed.
1 change: 1 addition & 0 deletions changes/4457.removal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`zarr.empty`, `zeros`, `ones` and `full`, their `zarr.api.asynchronous` versions, and `Group`/`AsyncGroup` `empty`, `zeros`, `ones` and `full` now list their parameters instead of taking `**kwargs`. The parameters are those of `zarr.create`. The group methods do not take `store`, `path` or `storage_options`, which the group supplies. An unknown keyword now raises a `TypeError` naming the function called. Passing `data` to these functions is deprecated; it fills the new array with `data` instead of the value the function is named for. To create an array from existing data, use `zarr.create_array(data=...)`. Passing `mode` to the group methods is deprecated, because it never had an effect there.
Loading
Loading