Alistair Miles
Alistair Miles
Maybe the fixture data could be included in the source distribution, I should check the size. Possibly an alternative solution would be to separate the creation of the fixture data...
Sounds like a valuable addition. It looks like there are both zlib-like and gzip-like compress functions, so I guess we'd want two codecs, zopfli-zlib and zopfli-gzip. The zopfli Python package...
Hi Justin, the general approach to implementing a new compression codec is to sub-class the numcodecs.Codec class and implement the methods encode(), decode(), get_config(), from_config(), and also the codec_id attribute....
Thanks @rc-conway. Do you have any suggestions for how to avoid this?
For reference, we call init() [here](https://github.com/zarr-developers/numcodecs/blob/d142cb31f9d09676a09593b0ad399cba924f3d99/numcodecs/__init__.py#L51) which will be called during zarr (numcodecs) import. We also register a call to destroy at exit ([here](https://github.com/zarr-developers/numcodecs/blob/d142cb31f9d09676a09593b0ad399cba924f3d99/numcodecs/__init__.py#L53)).
Thanks, good to know. On Fri, Jun 9, 2017 at 2:30 PM, Martin Durant wrote: > Not sure it's much use to you, but a flavour of RLE is implemented...
Hi Ryan, to implement a new codec you just need to implement the numcodecs.abc.Codec interface: https://numcodecs.readthedocs.io/en/latest/abc.html ...then register your new codec class with a call to register_codec(): https://numcodecs.readthedocs.io/en/latest/registry.html#numcodecs.registry.register_codec If you...
If there are existing python wrappers then I'd suggest to use those, at least as a first pass - can always optimise later if there is room for improvement. PRs...
For numcodecs it doesn't matter how you wrap zfp. As long as the zfp python module provides a compress() function that accepts any python object that implements the buffer protocol...
Just to elaborate a little, what we would like to do is implement a codec class for ZFP. The Codec interface is defined [here](https://numcodecs.readthedocs.io/en/latest/abc.html). Once there is a Python package...