Skip to content

Improve migration guide for codecs #3273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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/3273.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a section on codecs to the migration guide.
14 changes: 13 additions & 1 deletion docs/user-guide/v3_migration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ the following actions in order:
vendor the parts of the specific modules that you need.

* ``zarr.attrs`` has gone, with no replacement
* ``zarr.codecs`` has gone, use ``numcodecs`` instead
* ``zarr.codecs`` has changed, see "Codecs" section below for more information
* ``zarr.context`` has gone, with no replacement
* ``zarr.core`` remains but should be considered private API
* ``zarr.hierarchy`` has gone, with no replacement (use ``zarr.Group`` inplace of ``zarr.hierarchy.Group``)
Expand Down Expand Up @@ -178,6 +178,18 @@ If you are interested in developing a custom store that targets these backends,
:ref:`developing custom stores <user-guide-custom-stores>` or open an
`issue <https://github.com/zarr-developers/zarr-python/issues>`_ to discuss your use case.


Codecs
~~~~~~
Codecs defined in ``numcodecs`` (and also imported into the ``zarr.codecs`` namespace in Zarr-Python 2)
should still be used when creating Zarr format 2 arrays.

Codecs for creating Zarr format 3 arrays are available in two locations:

- `zarr.codecs` contains Zarr format 3 codecs that are defined in the `codecs section of the Zarr format 3 specification <https://zarr-specs.readthedocs.io/en/latest/v3/codecs/index.html>`_.
- `numcodecs.zarr3` contains codecs from ``numcodecs`` that can be used to create Zarr format 3 arrays, but are not necessarily part of the Zarr format 3 specification.


Dependencies
~~~~~~~~~~~~

Expand Down
Loading