triqs.utility.comparison_tests.assert_block2_gfs_are_close

triqs.utility.comparison_tests.assert_block2_gfs_are_close(a, b, precision=1e-06)[source]

Assert that two Block2Gf objects are equal block by block.

Currently a thin wrapper around assert_block_gfs_are_close() – the iteration interface of Block2Gf is compatible with that of BlockGf.

Parameters:
a, btriqs.gf.Block2Gf

Two-index block Green’s functions.

precisionfloat, optional

Maximum allowed element-wise absolute difference. Default 1e-6.

Raises:
AssertionError

If any inner block comparison fails.