numcodecs
numcodecs copied to clipboard
Enriching warning and handling when compression and decompression is done in the different `numcodecs` version
I noticed that data compressed with Zstd with numcodecs=0.14.0 cannot decompressed with numcodecs=0.12.1 even though they look compatible except for the checksum. I successfully decompress the data by manually erasing the checksum argument.
The current error message does not tell that the error is due to the use of different version of numcodecs:
File "numcodecs\\zstd.pyx", line 210, in numcodecs.zstd.Zstd.__init__
TypeError: __init__() got an unexpected keyword argument 'checksum'
I want them to guarantee compatibility for using lower versions or show a more informative error message. My idea is to ignore such additional arguments with a warning and give a clue to the error message when decompression fails. Thank you in advance for your feedback.