Hello,
I do have a really large(5 MB) Python bytes type buffer object and others which are of the same time but much bigger in terms of size.
>>> print(type(buffer))which
>>> <class 'bytes'>
>>> print(buffer)
>>> b"POINTS\x02\x03\x00\x01\........."
When storing this into an h5 file:
dt = h5py.special_dtype(vlen=str)
with h5py.File("cube.h5", "w") as f:
dset = f.create_dataset("cube", buffer, dt)
dset.attrs["1"] = "hello"
I'm getting an error:
ValueError: Dimensionality is too large (dimensionality is too large)
How do I store it? and I believe retrieval would be easier if I'm not wrong.
with h5py.File('cube.hdf5','r') as f:
print(f['cube'])
print(f['cube'].attrs["1"])
Cheers
Prashant