nsrdb.utilities.file_utils.repack_h5

repack_h5(fpath, f_new=None, inplace=True)[source]

Repack an h5 file potentially decreasing its memory footprint.

Parameters:
  • fpath (str) – Source/target h5 file (with path) to repack.

  • f_new (str) – Intended destination h5 file. If inplace is specified, this can be None.

  • inplace (bool) – If repacking inplace is requested, the final h5 file will have the same name and location as the original file. The original file will be removed.