Open WindSoilder opened 8 months ago
This crate does not support reading just a single compund field (PRs welcome) as one can do in h5py. You will have to read the compund type/struct and extract after reading.
If you are in charge of data creation I would reccommend storing each field as a dataset if it makes sense for your application. SoA (struct of arrays) may be beneficial over AoS (array of structs).
Thanks! Knowing that is important, currently I can try to work around it.
Background code
I have adjusted an example to the following to generate a h5 file which contains a 1d array:
Question
In python I can do this to read all
x
values:What's
hdf5-rust
way to achieve the same behavior? Sorry that I have no luck to find a proper solution.