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
Block2Gfobjects are equal block by block.Currently a thin wrapper around
assert_block_gfs_are_close()– the iteration interface ofBlock2Gfis compatible with that ofBlockGf.- 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.