Can't write one-element ndarray in HDF5
Created by: siebenkopf
When I try to write a single-element numpy.ndarray to HDF5File, and read it again, the type of the variable changes:
> import bob, numpy > f = bob.io.HDF5File("t.hdf5", "w") > a = numpy.ndarray((1,), dtype=numpy.int) > type(a) type 'numpy.ndarray' > f.set("a", a) > b = f.read("a") > type(b) type 'int'
The point is that it works well with 2-element arrays, and I want to write ndarrays of different sizes (also with a single element). Currently, this is not supported.