triqs.mesh.mesh_point.MeshValueGenerator

class triqs.mesh.mesh_point.MeshValueGenerator(m)[source]

Bases: object

Iterator adaptor yielding the value of each mesh point of a given mesh.

Iterating over MeshValueGenerator(m) is equivalent to (mp.value for mp in m). The class exists as a small helper to expose the values of a mesh under a stable, picklable name; it is re-exported from triqs.gfs for use by the plotting and high-level Green’s function code.

Parameters:
mmesh

Any object iterable over MeshPoint instances (or any object exposing a .value attribute on each element).

Attributes

m

(mesh) The wrapped mesh, stored verbatim.