triqs.utility.h5diff

TRIQS-aware comparison of two HDF5 archives.

The module is also installed as a console entry point so that python -m triqs.utility.h5diff file1.h5 file2.h5 can be used from the shell.

Attributes

verboseint

Module-level flag. When set to a truthy value, compare() prints the key being inspected at each level of the recursion. Default 0.

failureslist of str

Module-level list to which compare() appends a human-readable error message for every mismatch. h5diff() inspects it after walking the archives and raises if it is non-empty.

Functions

compare(key, a, b, level, precision)

Recursively compare two objects identified by key.

h5diff(f1, f2[, precision])

Compare two HDF5 archives and raise on mismatch.