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-levelfailureslist. If that list is non-empty after the walk, the collected messages are written tostderrand aRuntimeErroris 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_testsassertions. Default1e-6.
- Raises:
- RuntimeError
If any node of the two archives differs.