User-defined filter parameter parsing broken in h5repack?


#21

Aha, yes, I hadn’t spotted that new ‘filter_flag’ parameter. Now it works for me as well:

[up45@pc0063 tmp]$ h5repack -L -f UD=32001,0,7,0,0,0,0,1,1,1 input.h5 out.h5

[up45@pc0063 tmp]$ h5dump -pH out.h5
HDF5 "out.h5" {
GROUP "/" {
   DATASET "data" {
      DATATYPE  H5T_STD_U16LE
      DATASPACE  SIMPLE { ( 100, 1536, 2048 ) / ( H5S_UNLIMITED, 1536, 2048 ) }
      STORAGE_LAYOUT {
         CHUNKED ( 1, 1536, 2048 )
         SIZE 8839621 (71.173:1 COMPRESSION)
      }
      FILTERS {
         USER_DEFINED_FILTER {
            FILTER_ID 32001
            COMMENT blosc
            PARAMS { 2 2 2 6291456 1 1 1 }  #<== now as expected
         }
      }
      FILLVALUE {
         FILL_TIME H5D_FILL_TIME_IFSET
         VALUE  0
      }
      ALLOCATION_TIME {
         H5D_ALLOC_TIME_INCR
      }
   }
}
}

Thanks!