triqs.mesh.mesh_product.call_factory_from_dict

triqs.mesh.mesh_product.call_factory_from_dict(cl, name, l)[source]

Reconstruct an instance of cl from a dict produced by __reduce_to_dict__.

Helper used by MeshProduct.__reduce__() so that pickling and HDF5 serialisation can round-trip through the same factory.

Parameters:
cltype

Target class; must expose a __factory_from_dict__ classmethod.

namestr

Optional name forwarded to cl.__factory_from_dict__ (unused by MeshProduct itself).

ldict

Dictionary of component meshes keyed by "MeshComponent{i}".

Returns:
object

cl.__factory_from_dict__(name, l).