pwtools.io.read_h5¶
- pwtools.io.read_h5(fn)[source]¶
Read h5 file into dict.
Dict keys are the group + dataset names, e.g. ‘/a/b/c/dset’. All keys start with a leading slash even if written without (see
write_h5()
).- Parameters:
fn (str) – filename
Examples
>>> read_h5('foo.h5').keys() ['/a/b/d1', '/a/b/d2', '/a/c/d3', '/x/y/z']