I have a large hdf5 file that looks something like this:
A/B/dataset1, dataset2
A/C/dataset1, dataset2
A/D/dataset1, dataset2
A/E/dataset1, dataset2
...
I want to create a new file with only that: A/B/dataset1, dataset2 A/C/dataset1, dataset2
What is the easiest way in python?
I did:
fs = h5py.File('source.h5', 'r')
fd = h5py.File('dest.h5', 'w')
fs.copy('group B', fd)
the problem is that I get for dest.h5:
B/dataset1, dataset2
and that I am missing part of the arborescence.