triqs.mesh.mesh_product.call_factory_from_dict
- triqs.mesh.mesh_product.call_factory_from_dict(cl, name, l)[source]
Reconstruct an instance of
clfrom 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 byMeshProductitself).- ldict
Dictionary of component meshes keyed by
"MeshComponent{i}".
- Returns:
- object
cl.__factory_from_dict__(name, l).