triqs.gfs.block2_gf.Block2Gf.copy_from

Block2Gf.copy_from(G2)[source]

Copy the data of G2 into self block by block.

Parameters:
G2Block2Gf

Source container. Must have the same shape and identical per-block data shape.

Raises:
AssertionError

If any pair of blocks has incompatible data shape.