Release notes#

Unreleased#

Breaking changes#

  • All arguments to the PCodec constructor except for level are now keyword only, to support the updated API. By Sam Levang, #623

Fixes#

  • Fixes issue with Delta Zarr 3 codec not working with astype. By Norman Rzepka, #664

Improvements#

  • Add support for pcodec 0.3. This exposes the new delta_spec and paging_spec arguments, but maintains full backwards compatibility for data written with older package versions. By Sam Levang, #623

  • If an import error is raised when trying to define a codec that is not an optional dependency, it is no longer silently caught. Instead it will be propagated to the user, as this indicates an issue with the installed package.

    Import errors caused by optional dependencies (ZFPY, MsgPack, CRC32C, and PCodec) are still silently caught. By David Stansby, #550.

0.14.1#

Fixes#

  • Cleanups to the crc32c soft dependency. Whereas in numcodecs 0.14.0 a runtime error was raised if the CRC32C codec used without the crc32c installed, the CRC32C codec is no longer defined at import time if crc32c is not installed. This has been changed to match the behaviour of other optional dependencies/codecs. By John Kirkham, #637

Improvements#

0.14.0#

Enhancements#

Fixes#

  • Fix in-place mutation of input array in BitRound. By Sam Levang, #608

  • Fix an issue where importing numcodecs would lock the state of multiprocessing and prevent user code to call multiprocessing.set_start_method(“spawn”) subsequently. By Clément Robert #522

Maintenance#

0.13.1#

Breaking changes#

  • Zstd.default_level, Zstd.min_level, and Zstd.max_level are now class methods instead of properties. This means they must now be called like Zstd.default_level() instead of Zstd.default_level. This breaking change has been made because Python 3.13 removes support for class properties. By David Stansby, #576.

Enhancements#

  • Update bundled c-blosc to v1.26.1. This updates Zlib to v1.3.1 and Zstd to v1.5.6. By David Stansby, #560.

  • Added support for Python 3.13 David Stansby, #576.

  • Cleaned up the table of contents in the documentation to list codecs by category David Stansby, #458.

Maintenance#

0.13.0#

Enhancements#

Fix#

Maintenance#

  • The minimum supported Python version is now Python 3.10. By David Stansby, #531

  • Add numpy 2 compatibility. By David Stansby, #535

  • Update c-blosc to 1.21.0 to 1.21.5, zstd from 1.4.8 to 1.5.5, lz4 from 1.9.3 to 1.9.4, and zlib from 1.2.8 to to 1.2.13 By Mark Kittisopikul, #500

0.12.1#

Fix#

0.12.0#

Enhancements#

Fix#

Maintenance#

0.11.0#

Fix#

  • Speed up isinstance checks of numcodecs.ndarray_like.NDArrayLike, numcodecs.ndarray_like.DType and numcodecs.ndarray_like.FlagsObj. By Andreas Poehlmann, #379.

Maintenance#

0.10.2#

Fix#

0.10.1#

Maintenance#

0.10.0#

Enhancements#

Bug fixes#

Maintenance#

0.9.1#

0.9.0#

  • c-blosc upgrade 1.18.1 -> 1.21.0. Warning: this temporarily removes support for snappy compression! By kindjacket, #283.

  • Fix an ImportError with Blosc on Android. By Daniel Jewell, #284.

0.8.1#

0.8.0#

0.7.3#

  • Add support for Python 3.9 and Update GitHub Actions. By Jackson Maxfield Brown, #270.

  • Remove support for Python 3.5 which is end of life. While the code base might still be compatible; the source dist and wheel are marked as Python 3.6+ and pip will not install them. Continuous integration on Python 3.5 has been disabled. By Matthias Bussonnier, #266 and #267.

0.7.2#

0.7.1#

0.7.0#

0.6.4#

0.6.3#

0.6.2#

0.6.1#

0.6.0#

  • The encoding format used by the JSON and MsgPack codecs has been changed to resolve an issue with correctly encoding and decoding some object arrays. Now the encoded data includes the original shape of the array, which enables the correct shape to be restored on decoding. The previous encoding format is still supported, so that any data encoded using a previous version of numcodecs can still be read. Thus no changes to user code and applications should be required, other than upgrading numcodecs. By Jerome Kelleher; #74, #75.

  • Updated the msgpack dependency (by Jerome Kelleher; #74, #75).

  • Added support for ppc64le architecture by updating cpuinfo.py from upstream (by Anand S; #82).

  • Allow numcodecs.blosc.Blosc compressor to run on systems where locks are not present (by Marcus Kinsella, #83; and Tom White, #93).

  • Drop Python 3.4 (by John Kirkham; #89).

  • Add Python 3.7 (by John Kirkham; #92).

  • Add codec numcodecs.gzip.GZip to replace gzip alias for zlib, which was incorrect (by Jan Funke; #87; and John Kirkham, #134).

  • Corrects handling of NaT in datetime64 and timedelta64 in various compressors (by John Kirkham; #127, #131).

  • Improvements to the compatibility layer used for normalising inputs to encode and decode methods in most codecs. This removes unnecessary memory copies for some codecs, and also simplifies the implementation of some codecs, improving code readability and maintainability. By John Kirkham and Alistair Miles; #119, #121, #128.

  • Return values from encode() and decode() methods are now returned as numpy arrays for consistency across codecs. By John Kirkham, #136.

  • Improvements to handling of errors in the numcodecs.blosc.Blosc and numcodecs.lz4.LZ4 codecs when the maximum allowed size of an input buffer is exceeded. By Jerome Kelleher, #80, #81.

0.5.5#

  • The bundled c-blosc sources have been upgraded to version 1.14.3 (#72).

0.5.4#

  • The bundled c-blosc sources have been upgraded to version 1.14.0 (#71).

0.5.3#

  • The test suite has been migrated to use pytest instead of nosetests (#61, #62).

  • The bundled c-blosc library has been updated to version 1.13.4 (#63, #64).

0.5.2#

  • Add support for encoding None values in VLen… codecs (#59).

0.5.1#

  • Fixed a compatibility issue with the Zlib codec to ensure it can handle bytearray objects under Python 2.7 (#57).

  • Restricted the numcodecs.categorize.Categorize codec to object (‘O’) and unicode (‘U’) dtypes and disallowed bytes (‘S’) dtypes because these do not round-trip through JSON configuration.

0.5.0#

0.4.1#

  • Resolved an issue where providing an array with dtype object as the destination when decoding could cause segfaults with some codecs (#55).

0.4.0#

0.3.1#

  • Revert the default shuffle argument to SHUFFLE (byte shuffle) for the numcodecs.blosc.Blosc codec for compatibility and consistency with previous code.

0.3.0#

  • The numcodecs.blosc.Blosc codec has been made robust for usage in both multithreading and multiprocessing programs, regardless of whether Blosc has been configured to use multiple threads internally or not (#41, #42).

  • The numcodecs.blosc.Blosc codec now supports an AUTOSHUFFLE argument when encoding (compressing) which activates bit- or byte-shuffle depending on the itemsize of the incoming buffer (#37, #42). This is also now the default.

  • The numcodecs.blosc.Blosc codec now raises an exception when an invalid compressor name is provided under all circumstances (#40, #42).

  • The bundled version of the c-blosc library has been upgraded to version 1.12.1 (#45, #42).

  • An improvement has been made to the system detection capabilities during compilation of C extensions (by Prakhar Goel; #36, #38).

  • Arrays with datetime64 or timedelta64 can now be passed directly to compressor codecs (#39, #46).

0.2.1#

The bundled c-blosc library has been upgraded to version 1.11.3 (#34, #35).

0.2.0#

New codecs:

Other changes:

Maintenance work:

  • A data fixture has been added to the test suite to add some protection against changes to codecs that break backwards-compatibility with data encoded using a previous release of numcodecs (#30, #33).

0.1.1#

This release includes a small modification to the setup.py script to provide greater control over how compiler options for different instruction sets are configured (#24, #27).

0.1.0#

New codecs:

Other new features:

  • The numcodecs.lzma.LZMA codec is now supported on Python 2.7 if backports.lzma is installed (John Kirkham; #11, #13).

  • The bundled c-blosc library has been upgraded to version 1.11.2 (#10, #18).

  • An option has been added to the numcodecs.blosc.Blosc codec to allow the block size to be manually configured (#9, #19).

  • The representation string for the numcodecs.blosc.Blosc codec has been tweaked to help with understanding the shuffle option (#4, #19).

  • Options have been added to manually control how the C extensions are built regardless of the architecture of the system on which the build is run. To disable support for AVX2 set the environment variable “DISABLE_NUMCODECS_AVX2”. To disable support for SSE2 set the environment variable “DISABLE_NUMCODECS_SSE2”. To disable C extensions altogether set the environment variable “DISABLE_NUMCODECS_CEXT” (#24, #26).

Maintenance work:

  • CI tests now run under Python 3.6 as well as 2.7, 3.4, 3.5 (#16, #17).

  • Test coverage is now monitored via coveralls (#15, #20).

0.0.1#

Fixed project description in setup.py.

0.0.0#

First release. This version is a port of the codecs module from Zarr 2.1.0. The following changes have been made from the original Zarr module:

  • Codec classes have been re-organized into separate modules, mostly one per codec class, for ease of maintenance.

  • Two new codec classes have been added based on 32-bit checksums: numcodecs.checksum32.CRC32 and numcodecs.checksum32.Adler32.

  • The Blosc extension has been refactored to remove code duplications related to handling of buffer compatibility.