Remove LZ4HDF5 from blosc subcompressor list#580
Remove LZ4HDF5 from blosc subcompressor list#580jwlodek wants to merge 5 commits intoareaDetector:masterfrom
Conversation
|
Also, I wonder if this enumeration (and the array of matching string names) should move to |
Sorry about that mistake in added lz4hdf5 to blosc enum. I agree that moving the blosc enum to Codec.h is a good idea. Should we also rename Codec.h to NDCodec.h, so it is less likely to conflict with other packages? |
I think that is also a good idea. I'll make both changes and add them to this PR. I'll also check which drivers import Codec.h and update those as well. |
|
I've renamed the file as well as the name of the |
|
It doesn't seem like any existing drivers actually import this header - in ADEiger the codec name is set directly as a string without the array lookup. So I think this change would actually be non-breaking for existing drivers. |
|
It would probably be good to change ADEiger to use the array lookup to future proof it. |
I missed this on review of the LZ4HDF5 PR. The
compressBloscfunction, uses the enum value forNDCodecBloscComp_tto get the compressor name from thebloscCompNamearray. Following this addition, the codecs afterlz4no longer matched up. Specifying azstdcodec would actually cause a segfault since it was last. - I noticed that when I added theNDPluginCodecunit tests, but I thought my version of blosc just didn't supportzstd.My understanding is that the
lz4hdf5codec is standalone and not meant as a blosc subcompressor, is that correct? If it should exist as a subcompressor, then it'll need to be added to the string array and the record as well.