triqs.utility.h5diff.h5diff

triqs.utility.h5diff.h5diff(f1, f2, precision=1e-06)[source]

Compare two HDF5 archives and raise on mismatch.

Opens both archives in read-only mode and walks them recursively via compare(). Any mismatch is collected in the module-level failures list. If that list is non-empty after the walk, the collected messages are written to stderr and a RuntimeError is raised.

Parameters:
f1, f2str

Paths to the HDF5 files to compare.

precisionfloat, optional

Maximum allowed element-wise absolute difference for arrays and Green’s-function data, passed through to the triqs.utility.comparison_tests assertions. Default 1e-6.

Raises:
RuntimeError

If any node of the two archives differs.