Closed AmjadHD closed 1 year ago
You can't assume that nimhdf5
works exactly like h5py
. Groups and datasets are represented using different types. So the default items
iterator never yields datasets, it only yields groups!
If you really want the datasets from an iterator, you first need to get the root group and then call items
on that.
import nimhdf5
let h5f = H5open("/t/testset.hdf5", "r")
let root = h5f["/".grp_str]
for dset in root:
echo dset
discard h5f.close()
There are other important differences between h5py and nimhdf5 though, all essentially related to type safety. Better ping me on matrix/discord, as lately and in the near future I won't be looking at Github much.
I tried to open this file using this library:
but I get nothing. when using
h5py
:I get:
Notes:
-d:H5_FUTURE
, doesn't change anything.