Compression of existing file using h5py
问题 I'm currently working on a project regarding compression of HDF5 datasets and recently began using h5py. I followed the basic tutorials and was able to open,create and compress a file while it was being created. However, I've been unsuccessful when it comes to compressing an existing file (which is the aim of my work). I've tried opening files using 'r+' and then compressing chunked datasets but the file sizes have remained the same. Any suggestions on what commands to use or am I going about