numcodecs
numcodecs copied to clipboard
A Python package providing buffer compression and transformation codecs for use in data storage and communication applications.
Makes it possible to apply this filter without automatically converting to integers. #549
As noted in issue ( https://github.com/zarr-developers/numcodecs ), `vlen` had problems with read-only data Internally this occurred because we assigned the input array to `object[:]`, which expects mutability. Ideally we would...
I'm not sure why, but in https://github.com/zarr-developers/numcodecs/pull/501 c-blosc was updated to a commit that wasn't associated with a particular version. This PR updates c-blosc to v1.26.1, the latest release, which...
#### Problem description This was added in #519: https://github.com/zarr-developers/numcodecs/blob/696e58253494f4ffb21f4d3ca30e298b22c1c929/numcodecs/zstd.pyx#L261-L277 However, as of Python 3.11, using `classmethod` on `property` was deprecated, and has been removed in Python 3.13: https://docs.python.org/3.13/library/functions.html#classmethod > Deprecated...
```python import numpy as np import numcodecs filter = numcodecs.fixedscaleoffset.FixedScaleOffset(273.15, 1.0, 'f4', astype='f4') # temp in K temperature = np.array([263.05, 273.05, 273.35, 283.25, 293.55, 304.05, 313.94998], dtype=np.float32) # scale temperature...
#### Minimal, reproducible code sample, a copy-pastable example if possible ```python from numcodecs.ndarray_like import is_ndarray_like import numpy as np import dask.array as da np_array = np.zeros((10,10)) da_array = da.zeros((10,10)) cast_da_array...
Time for some more version bumps to follow along with [SPEC-0](https://scientific-python.org/specs/spec-0000/#support-window)!
`pcodec` 0.3 was released recently, and it has breaking changes. For now I've pinned to `pcodec=0.3` and adapt numcodecs to work with the newer version.
Before https://github.com/zarr-developers/numcodecs/pull/619, it would be good to convert test warnings to errors, so we can make sure there aren't any warnings being raised that we're not expecting.
Fixes https://github.com/zarr-developers/numcodecs/issues/596