You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deleting a h5 group with the triqs h5 python layer is not possible. Consider as a simple example the following standard dft_tools archive with the top layer content:
HDFArchive (partial view) with the following content:
dft_input : subgroup
dft_misc_input : subgroup
dft_symmcorr_input : subgroup
running:
with HDFArchive('svo.h5','a') as ar:
del ar['dft_misc_input']
is not deleting the group. The output still looks the same. However, with h5py this is possible:
import h5py
with h5py.File('svo.h5', 'a') as ar:
del ar['dft_misc_input']
removes the group from the archive:
HDFArchive (partial view) with the following content:
dft_input : subgroup
dft_symmcorr_input : subgroup
I also noticed that the example given in the docstring of the h5 main class do not work:
Deleting a h5 group with the triqs h5 python layer is not possible. Consider as a simple example the following standard dft_tools archive with the top layer content:
running:
is not deleting the group. The output still looks the same. However, with
h5py
this is possible:removes the group from the archive:
I also noticed that the example given in the docstring of the h5 main class do not work:
h5/python/h5/archive.py
Line 339 in d9af4b5
the test was done on the 1.1.x branch, but the unstable branch shows the same behavior.
The text was updated successfully, but these errors were encountered: